TPV Integration

You can integrate TPV with BizSDK framework in below steps:

Hash Calculation

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

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)

Make Payment

To get request, create an object of class PayUCreateRequest as below. The callbacks give you NSURLRequest as well as post parameters (in String). You can use these post parameters to initialize Custom Browser Instance.

For NetBanking

To Pay using NetBanking, we need to set NetBanking parameter as below:

After setting the above parameters, you can get the request by using createRequestWithPaymentParam method as below

For UPI

To Pay using UPI, we need to set UPI parameter as below:

After setting the above parameters, you can get the request by using createRequestWithPaymentParam method as below

Response Handling

It is same as you are handling for other payment option.

Last updated

Was this helpful?