I'm running into issues handing off a cart transaction to Paypal Express. I've set the paymentMethodId
correctly on the cart, but when I submit to commerce/payments/pay
I am only getting redirected to my cart page and nothing is showing in the Commerce debug logs.
Aside from having cart items and a paymentMethodId, is there anything else required for the Paypal handoff? How can I further debug this?
<form method="POST" id="paypal_checkout_form">
<input type="hidden" name="action" value="commerce/payments/pay"/>
<input type="hidden" name="redirect" value="/thank-you?oid={{ cart.number }}"/>
<input type="hidden" name="cancelUrl" value="/shop/cancel"/>
<input type="hidden" name="orderNumber" value="{{ cart.number }}"/>
{{ getCsrfInput() }}
</form>