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
Parameter | Description | Example |
---|---|---|
billingAmountmandatory | String Contains the billing amount | 100.00 |
billingCyclemandatory | String Billing Cycle defines whether customer needs to be charged over Daily, Weekly basis, Monthly or Yearly basis or one time, | MONTHLY |
billingIntervalmandatory | Integer Billing Interval is closely coupled with value of “billingCycle” and denotes at what frequency, the subscription plan needs to be executed. | 1 |
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 date If no value is passed, then by default this is considered as ‘AFTER’ | ON |
billingRulemandatory | 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 |
billingCurrencymandatory | String Currency in which the amount needs to be collected. By default, it is 'INR'. | INR |
paymentStartDatemandatory | Date Start date of recurring payment | 2022-02-14 |
paymentEndDatemandatory | Date End Date of recurring payment | 2023-01-14 |
freeTrial optional | 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. | 1 |
Updated 10 months ago