Standing Instructions

You can integrate SI with BizSDK framework in below steps:

Hash Calculation

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

Hash Formula:


siDetail = "{"billingAmount": "150.00","billingCurrency": "INR","billingCycle": "WEEKLY","billingInterval": 1,"paymentStartDate": "2019-09-18","paymentEndDate": "2020-10-20"}"
beneficiaryDetail = "{"beneficiaryAccountNumber":"1234567890"}"
// Hash calculation for Cards & StoreCards
Hash = sha512(key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||siDetail|SALT)
// Hash calculation for NB
Hash = sha512(key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||siDetail|beneficiaryDetail|SALT)

Make Payment

For NB, StoreCard and Card:

Create an object of PayUSIParams and pass in the payment param object as below:

PayUSIParams *siParam = [[PayUSIParams alloc] initWithBillingAmount:<#(NSString * _Nonnull)#>
                                                   paymentStartDate:<#(NSDate * _Nonnull)#>
                                                     paymentEndDate:<#(NSDate * _Nonnull)#>
                                                       billingCycle:<#(enum PayUBillingCycle)#>
                                                    billingInterval:<#(NSNumber * _Nonnull)#>];
self.paymentParamForPassing.siParams = siParam;

More details about PayUSIParams can be found here.

For NB payment, you have to give beneficiary details as well:

PayUBeneficiaryParams *beneficiaryParams = [[PayUBeneficiaryParams alloc] initWithBeneficiaryName:<#(NSString * _Nonnull)#>
                                                                         beneficiaryAccountNumber:<#(NSString * _Nonnull)#>
                                                                           beneficiaryAccountType:<#(enum BeneficiaryAccountType)#>];
self.paymentParamForPassing.beneficiaryParams = beneficiaryParams;

More details about PayUBeneficiaryParams can be found here.

After setting the above parameters, create the request object as mentioned here.

Response Handling

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

Last updated