PayU Standing Instructions Parameters
Step 1: Create a SI parameters object
Create a class PayUSIParams object using the code similar to the following:
//Swift
let siParam = PayUSIParams(billingAmount: <String>,
paymentStartDate: <Date>,
paymentEndDate: <Date>,
billingCycle: <PayUBillingCycle>,
billingInterval: <NSNumber>,
billingLimit: <PayuBillingLimit>,
billingRule: <PayuBillingRule>)
/* Objective C */
PayUSIParams *siParam = [[PayUSIParams alloc] initWithBillingAmount:<#(NSString * _Nonnull)#> paymentStartDate:<#(NSDate * _Nonnull)#>
paymentEndDate:<#(NSDate * _Nonnull)#> billingCycle:<#(enum PayUBillingCycle)#> billingInterval:<#(NSNumber * _Nonnull)#>];
Step 2: Post parameters
EnableSImandatory | Boolean : This flag must contain any of the following to indicate if SI or subscriptions is required for the payment link:1: The request is eligible for SI 0: The request is eligible for SI Note: If EnableSI=1 in the JSON, the values for all other fields (mandatory) in this JSON must be posted |
billingAmountmandatory | String Contains the billing amount |
billingCyclemandatory | String Billing Cycle defines whether the customer needs to be charged on a Daily, Weekly basis, Monthly, or Yearly basis or one time. |
billingIntervalmandatory | NSNumber Billing Interval is closely coupled with the value of “billingCycle ” and denotes at what frequency, the subscription plan needs to be executed. |
billingLimitmandatory | String The possible values for this parameter are:- ON = On the specific date- BEFORE = Before and on the specific date- AFTER = After and on the specific dateIf no value is passed, then by default this is considered as ‘AFTER’ |
billingRulemandatory | StringMAX = Maximum amount. Lesser than this or equal to this amount can be debited in recurring debitsEXACT = Exact this amount can be debited in recurring debits
Note: If no value is passed, then by default this is considered as ‘MAX’. |
billingCurrencymandatory | String Currency in which the amount needs to be collected. By default, it is 'INR'. |
paymentStartDatemandatory | Date Start date of recurring payment. |
paymentEndDatemandatory | Date End Date of recurring payment |
freeTrialoptional | Boolean This flag is to indicate any of the following:0: This is not a trial subscription. If this parameter is not posted, will be assumed as 0. 1: This is a trial subscription. |
Updated 10 months ago