5. Process the Payment

Please read carefully the instruction below

Once you have posted the payment confirmation to Paycorp you will receive the payment response. Typically you would then save the response to some DB and display a receipt page to your user.

You may then also want to trigger some other internal processing that relates to the payment like completing and order or initiating delivery etc.

ඔබ Paycorp වෙත Payment එක තහවුරු කිරීම එවූ පසු Paycorp විසින් ඔබට Payment එකට අදාල ප්‍රතිචාරය එවනු ඇත. සාමාන්‍යයෙන් ඉන්පසු ඔබට එම ප්‍රතිචාරය Database තුල save කරගත හැකි අතර receipt එක පාරිභෝගිකයාට පෙන්විය හැක.එසේම ඉන්පසුව ඔබට අවශ්‍ය payment එකට අදාළ Order Completion, Delivery ...etc ආදී වෙනත් අභ්‍යන්තර ක්‍රියාවලීන්ද සිදුකල හැක.

Payment Response fields

property

type

description

reqid

string

The unique payment request ID used to confirm the payment

clientRef

string

The merchants payment reference

comment

string

The comment as provided in payment init

cardType

string

The credit card type, VISA, MASTERCARD, AMEX etc

cardHolderName

string

The card holder name

cardNumber

string

The masked credit card number

cardExpiry

string

The credit card expiry

paymentAmount

string

The payment amount in DECIMAL format

currency

string

The transaction currency

txnReference

string

The unique transaction reference generated by Paycorp

responseCode

string

The transaction response code

responseText

string

The transaction response text

token

string

The token generated for the card

tokenResponseText

string

The response text for token generation

Last updated