0

I've asked around and google'd but still nothing.

I want to be able to offer a 10% (or wtv) discount to anyone that opts out to pay directly through Wire Transfer or Check.

Can this be accomplished with Magento?

Rodrigo Dellacqua
  • 268
  • 1
  • 3
  • 12

1 Answers1

0

There are 2 possible solutions for this problem:

  1. client side solution using javascript. You calculate the the discount price in javascript and send the new price to paypal. The advantage is easy to implement, but the discount code might be seen by others because the password is in the javascript. Refer to http://icode4you.net/how-to-create-a-coupon-discount-for-paypal-buttons

  2. server side solution. Yo calculate the discount price on the service side which allows you to validate the discount code on the server which is more secure. And the server side code send the updated price to paypal using PHP or other supported programming language depending on your website. Refer to: Coupon Code For Paypal Express Checkout.

Community
  • 1
  • 1
Mingjiang Shi
  • 7,415
  • 2
  • 26
  • 31