TPV Integration

triangle-exclamation

You can integrate TPV with Core SDK in below steps:

Hash Calculation

‌For TPV transaction, hash calculation formula is different from normal type of payment:

For multiple account number, account number should be pipe separated and max 4 account numbers are allowed.‌

Hash Formula:

// For single account number
beneficiarydetail = "{'beneficiaryAccountNumber':'123456789'}"

// For multiple account number
beneficiarydetail = "{'beneficiaryAccountNumber':'123456789|54321234|98765673|34767988'}"

// Hash calculation
Hash = sha512(key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||beneficiarydetail|SALT)

It is recommended to pass ifscCode for NB, UPI and TEZ TPV transactions. Hash calculation will include ifscCode as shown below

Make Payment

For NetBanking

‌To Pay using NetBanking, you need to pass payment params along with below additional params

‌After setting the above parameters, you can get the payment post params using below

For UPI

‌To Pay using UPI, you need to pass beneficiaryAccountNumber param as below

For UPI Collect

After setting the above parameters for UPI Collect transaction, you can get the payment post params using below

For TEZ

For TEZ transaction, you can get the payment post params using below

Last updated