I am using Paypal REST API (Java) in Sanbox mode to test my recurring payment setup.
Business rules:
1- Upon new subscription, I want to charge the customer 3 months billed immediately without refund.
2- After 3 months, a regular monthly bill will apply automatically for infinite until canceled by user
Plan Definitions:
For rule (1), I did:
{ "name": "Trial",
"type": "TRIAL",
"frequency_interval": "3",
"frequency": "Month",
"cycles": "1",
"amount": {
"currency": "CAD",
"value": "900"
}
For rule (2):
{ "name": "Regular",
"type": "REGULAR",
"frequency_interval": "1",
"frequency": "Month",
"cycles": "0",
"amount": {
"currency": "CAD",
"value": "300"
}
Agreement:
agreement.setStartDate(//3months from today);
Questions:
- Is the use of 'Trial' correct for my business rule? (charge immediately today) Or should I use 'Initial' instead?
- How can I make the 'trial' charge non-refundable?
Thank you