简体   繁体   中英

Apply discount coupon code on first recurring payment in paypal (paypal-subscriptions)

I am using paypal (PHP) for recurring payment. It is working fine , but now i wants my user to get discount if they subscribe to my plans.

It is something like this, Plan actual cost is $20, if user subscribe to this plan , he should pay only $15,as $5 is given discount (only first time, after that next billing should be of $20).

can anyone help me how to do it in paypal.

I understand, Paypal currently is not supporting coupons or any kind of discounts on their /v1/billing/subscriptions or /v1/billing/plans endpoint. You can manage yourself by creating Plan B (copy of Plan A but with a discount on price) and displaying that plan on the checkout. Then deactivate and activate other plan.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM