Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See https://developer.paypal.com/docs/api/orders/v2/#definition-application_...
The user_action parameter can be specified in the application_context to configure a "Continue" or "Pay Now" checkout flow.
The possible values are:
- CONTINUE. After you redirect the customer to the PayPal payment page, a Continue button appears. Use this option when the final amount is not known when the checkout flow is initiated and you want to redirect the customer to the merchant page without processing the payment.
- PAY_NOW. After you redirect the customer to the PayPal payment page, a Pay Now button appears. Use this option when the final amount is known when the checkout is initiated and you want to process the payment immediately when the customer clicks Pay Now.
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_paypal-specify-user-action-3041725-2.patch | 2.68 KB | jsacksick |
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro for PayPal, Inc commentedAdditionally, I updated
CheckoutController::onCreate()
to always create a new order in PayPal instead of trying to update it.Comment #4
jsacksick CreditAttribution: jsacksick at Centarro for PayPal, Inc commentedNote that this should already be handled by the "commit" parameter specified when initializing the JS SDK, but doesn't hurt to also specify it in our server side requests.