Getting connected

Getting connected is very simple:

  1. Create an HTML page that includes Paycorp 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 එකක් භාවිතා කරන්න. අවසානයේ

  • Payment response එක ඔබට ලබාගත හැකිය

Last updated