Paypal JAVA SDK examples for recurring payments

时间秒杀一切 提交于 2019-12-08 12:01:29

问题


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:

  1. Create Plan, which returns me planId.
  2. Make plan Active by generated planId.
  3. Prepare Agreement object with start date and description, provide plan id to the agreement object. Which return URL for agreement.
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!