# Getting connected

[Getting connected](/quick-web/getting-connected.md) is very simple:

1. Create an HTML page that includes Paycorp [paycorp\_payments.js](https://paycorp-smp.stg.aws.paycorp.lk/webinterface/paycorp_payments.js) in a **\<script>** block
2. Initialise the payment using javascript
3. Setup an HTTP GET endpoint to handle the payment initialisation callback
4. Confirm the payment using a simple HTTP POST request
5. Process the payment response

Sinhala Translation:

* පලමුව html page එකක් සාදා paycorp\_payment.js link එක \<script> block හි src tag එකට දෙන්න.
* Payment එකේ මූලික පියවර javascript භාවිතයෙන් ආරම්භ කරන්න.
* Payment එක හැසිරවිම සදහා paycorp එකෙන් එවන HTTP GET Endpoint  එක පාවිච්චි කරන්න.
* Payment එක තහවුරු කරගැනීම සදහා HTTP POST Request එකක් භාවිතා කරන්න. අවසානයේ&#x20;
* Payment response එක ඔබට ලබාගත හැකිය


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://paycorp-international.gitbook.io/quick-web/getting-connected.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
