Good Afternoon,
We are trying to set up our PayPal Express checkout to process PayPal payments by only authorizing the payments, giving us the option to then be able to either capture or void the payment from within our PayPal account. Have tried changing PAYMENTREQUEST_0_PAYMENTACTION=Authorization, but this doesn't seem to be working. This code only allows the sale/payment to be taken straight away. Any help or suggestions, would be very much appreciated. Here's a link to the original code before we have applied any modifications:
Kind Regards,
Andy
In order to do payments of type Authorization you need to:
Have "Authorization" set or evaluated from plugin settings everywhere (including line 688 in the DoExpressCheckoutPayment)
Have your User/PWD/Signature credentials set, using the information from your PayPal account in https://www.paypal.com/api . Uncredentialed API calls can process Sales, but not Authorizations.
If at all possible you really should configure "Authorization" within the plugin's settings, and not by changing any code.