问题
I have a requirement for recurring yearly payment for my services. and amount of recurring profile will be changed at any time, even before one day of next cycle.
I could not find a proper way to implement a recurring profile in Paypal using Java SDK.
Paypal document shows I need to create Plan and Agreement, Then buyer needs to approve this Agreement. and from the response I got token, which I use as I following below step:
- Create Plan, which returns me planId.
- Make plan Active by generated planId.
- Prepare Agreement object with start date and description, provide plan id to the agreement object. Which return URL for agreement.
- Buyer will redirect to Paypal, after the success, it will return me Token. then execute the agreement with return token.
Now profile is getting generated in buyer account, but how can I update it every time when I change the amount?
I found detail as you can not increase the amount of more than 20% within 180 days.
So I need to delete existing profile and recreate the new one with a new amount every time. so does user need to pay and Agree for it every time?
Is there any step by step document? Any help is welcome.
来源:https://stackoverflow.com/questions/52928635/paypal-java-sdk-examples-for-recurring-payments