User story
Currently, when using the PayPal Express button to complete an order, you are always redirected back to the shop to finalize the order.
I can see in Swag\PayPal\Checkout\ExpressCheckout\SalesChannel\ExpressCreateOrderRoute that the user action property is always set to ApplicationContext::USER_ACTION_CONTINUE. Do you consider support for the ApplicationContext::USER_ACTION_PAY_NOW? Could it be configurable? Is it feasible from a technical point of view?
As a reference, take a look at this article: https://developer.paypal.com/limited-release/commerce-platform/accept-payments/standard/customize/pay-now/
Here you can see PayPal orders API docs with the user action payload element: https://developer.paypal.com/docs/api/orders/v2/#orders_create!path=payment_source/paypal/experience_context/user_action&t=request
Acceptance criteria
You can choose user action for PayPal Express flow in the plugin configuration, either PAY_NOW or CONTINUE.
User story
Currently, when using the PayPal Express button to complete an order, you are always redirected back to the shop to finalize the order.
I can see in
Swag\PayPal\Checkout\ExpressCheckout\SalesChannel\ExpressCreateOrderRoutethat the user action property is always set toApplicationContext::USER_ACTION_CONTINUE. Do you consider support for theApplicationContext::USER_ACTION_PAY_NOW? Could it be configurable? Is it feasible from a technical point of view?As a reference, take a look at this article: https://developer.paypal.com/limited-release/commerce-platform/accept-payments/standard/customize/pay-now/
Here you can see PayPal orders API docs with the user action payload element: https://developer.paypal.com/docs/api/orders/v2/#orders_create!path=payment_source/paypal/experience_context/user_action&t=request
Acceptance criteria
You can choose user action for PayPal Express flow in the plugin configuration, either PAY_NOW or CONTINUE.