opsb
opsb

Reputation: 30211

Paypal discount code with buy now button

I've created a paypal buy now button and integrated it successfully. When testing I notice that once I reach the paypal site there's an option to redeem a "voucher, reward or other discount".

How do I create the voucher/discount codes?

The instructions I've seen so far seem to relate to handling the coupon codes on your own website i.e. you have to allow users to enter the code on your site. I'm looking for a solution where my customers can redeem a coupon code on the paypal website using the option I mentioned earlier.

Upvotes: 1

Views: 2436

Answers (2)

theTypan
theTypan

Reputation: 5877

If you are using V2 of the PayPal API, add it as part of the breakdown. https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown

Upvotes: 0

user1005792
user1005792

Reputation: 38

You cant create vouchers. Only paypal or ebay users can create those. You're gonna have to create a script that calculates the discounts on your website before sending the total amount to paypal checkout. Check a script i posted on my profile for more info.

Upvotes: 2

Related Questions