Dave
Dave

Reputation: 769

Paypal JAVA REST API examples for recurring payments

Does the Paypal JAVA REST API support recurring payment? like getting payment $20 on the 1st day of every month.

Any examples? I could not find such examples.

Thanks for help.

Upvotes: 0

Views: 2497

Answers (1)

PayPal_Nacho
PayPal_Nacho

Reputation: 96

In the REST API, classic recurring payments are know as billing plans and billing agreements.

You can find more information here:

https://developer.paypal.com/docs/integration/direct/create-billing-plan/

This would be, roughly, the flow:

  • Create a Billing Plan with the subscription/recurring payment properties and activate it.

  • Create a Billing Agreement passing the ID of the plan you want to use for that particular customer.

  • Redirect buyer to PayPal for approval of the agreement.

  • Execute the agreement after buyer has approved it and returned back to your site.

Upvotes: 1

Related Questions