Documentation
  • Getting Started
  • PayKun Basic-Know-How
    • Registration Guide
    • Payment Life Cycle
    • Payments
    • PayKun Merchant Dashboard
    • PayKun Payment Links
  • PayKun Developer’s Hub
    • Getting Started
      • General Payment Flow with API
      • ‌Authentication
      • Types of Integration
    • Test Environment
    • API Encryption Key Guide
    • Web Integration
      • Understanding Integration
        • Request
        • Encryption
        • Response
        • Error Codes
      • PHP
      • Python
      • .Net
      • JS Checkout
    • Mobile Integration
      • Android SDK
      • iOS SDK
    • eCommerce Integration
      • OpenCart
      • PrestaShop Modules
      • Paykun WHMCS Kit
      • Wordpress_v4.x_Donation
      • WooCommerce
      • Magento
    • Webhooks
    • API Reference Guide
    • Signature Generation and Verification
    • Test Card Information
Powered by GitBook
On this page
  • 1.Order Creation
  • 2.Authorization and Capture
  • 3.Refund
  • 4.Failed

Was this helpful?

  1. PayKun Developer’s Hub
  2. Getting Started

General Payment Flow with API

1.Order Creation

After the customer selects the product or service and continues with the checkout page, when he fills up the details then there is one Order ID created also at that time the information is sent to PayKun API. Along with that, there is one PayKun Order ID created. There is no payment processing during this stage.

2.Authorization and Capture

During this stage, an inside process is carried out when the PayKun sends the authentication request to the issuing bank for the payment deduction from the customer’s account. After the authorization is received from there, the funds are deducted and are captured by PayKun (settlement process can only start after the funds are captured by PayKun). After the successful authorization, the merchant’s bank needs to capture the payment. The funds are transferred to the merchant’s bank account after the payment is captured (time period depending on the payout cycle).

Once the bank has authorized the customer’s payment, it will be auto captured and it verifies that purchase as complete by the merchant (you) and then no further action is needed from your side.

Sometimes, it may happen that the actual real-time status of the transaction is not shown due to network issues, technical errors at customer's/bank's end, etc. In a few hours, it may be reconciled and it shows the real status. This is known as the Late-Authorization.

3.Refund

Only once the payment has been captured by you, it can be refunded to the customer. It will be deposited back at the same place from where it was deducted.

4.Failed

This is shown when there are some issues in authorizing the payment or if the customer drops out of the transaction due to some reason, or there was a technical error.

PreviousGetting StartedNext‌Authentication

Last updated 4 years ago

Was this helpful?