The checkout is currently broken when you set the Payment Action in PPEC settings to Authorize.
With the new sdk/js we must set the intent query-parameter when loading the payment form otherwise PayPal defaults to capture and then throws and error when trying to place the order.
From my understanding, in 1.6.21 we never had to set an intent when loading the from with checkout.js because we handled authorization in later API requests once we received a token from PayPal, but with the new sdk we need to.
Issue: #750
Ticket: 3007850-zen
Description
The checkout is currently broken when you set the Payment Action in PPEC settings to Authorize.
With the new
sdk/js
we must set the intent query-parameter when loading the payment form otherwise PayPal defaults to capture and then throws and error when trying to place the order.From my understanding, in 1.6.21 we never had to set an intent when loading the from with
checkout.js
because we handled authorization in later API requests once we received a token from PayPal, but with the new sdk we need to.Steps to test:
Closes #750