Standing Instruction Parameter Details

Step 1: Create a SI Parameters Object

Create a class PayUSIParams object using the code similar to the following

PayUSIParams siDetails  = new PayUSIParams.Builder()
.setIsFreeTrial(true) //set it to true for free trial. Default value is false 
.setBillingAmount("1.0")
.setBillingCycle(PayUBillingCycle.ONCE)     
.setBillingCurrency("INR")
.setBillingInterval(1)
.setPaymentStartDate("2021-12-24")
.setPaymentEndDate("2021-12-31")
.setBillingRule(PayuBillingRule.MAX)
.setBillingLimit(PayuBillingLimit.ON)
.setRemarks("SI Txn")
.build();
val siDetails  = PayUSIParams.Builder()
                .setIsFreeTrial(true) //set it to true for free trial. Default value is false
                .setBillingAmount("1.0")
                .setBillingCycle(PayUBillingCycle.ONCE)     
                .setBillingCurrency("INR")
                .setBillingInterval(1)
                .setPaymentStartDate("2021-12-24")
                .setPaymentEndDate("2021-12-31")
                .setBillingRule(PayuBillingRule.MAX)
                .setBillingLimit(PayuBillingLimit.ON)
                .setRemarks("SI Txn")
                .build()

Step 2: Post Parameters

ParameterDescriptionExample
billingAmount
mandatory
String Contains the billing amount100.00
billingCycle
mandatory
String Billing Cycle defines whether customer needs to be charged over Daily, Weekly basis, Monthly or Yearly basis or one time,MONTHLY
billingInterval
mandatory
Integer Billing Interval is closely coupled with value of “billingCycle” and denotes at what frequency, the subscription plan needs to be executed.1
billingLimit
mandatory
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 date
If no value is passed, then by default this is considered as ‘AFTER’
ON
billingRule
mandatory
String

MAX = Maximum amount. Lesser than this or equal to this amount can be debited in recurring debits

EXACT= Exact to this amount can be debited in recurring debits
Note: If no value is passed, then by default this is considered as ‘MAX’
MAX
billingCurrency
mandatory
String Currency in which the amount needs to be collected. By default, it is 'INR'.INR
paymentStartDate
mandatory
Date Start date of recurring payment2022-02-14
paymentEndDate
mandatory
Date End Date of recurring payment2023-01-14
freeTrial optionalBoolean 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.
1