Expected Behavior
Receive successful 200 response to following post request - $spree.api.getPaymentConfirmationData();
Actual Behavior
Receive 403 forbidden response.
This is due to spree being unable to find spree_current_order. The axios post request in getPaymentConfirmationData does not have the order_token where spree is expecting to find it (request.headers['X-Spree-Order-Token']).
Possible Solution
Update the axios post request in getPaymentConfirmationData so that the order_token is where spree is expecting to find it #255 .
Steps to reproduce
- Create order using latest version of Vue Spree (1.3.0).
- Add
return; to line 152 (following await savePayment.value();) in Payment.vue to prevent order proceeding to complete.
- Attempt to checkout using OOB Stripe gateway.
What version of Spree integration are you using?
1.3.0
What version of Node.js are you using?
14.20.0
What browser (and version) are you using?
Chrome
What operating system (and version) are you using?
Ubuntu
Relevant log output
No response
Code of Conduct
Expected Behavior
Receive successful 200 response to following post request -
$spree.api.getPaymentConfirmationData();Actual Behavior
Receive 403 forbidden response.
This is due to spree being unable to find
spree_current_order. The axios post request ingetPaymentConfirmationDatadoes not have the order_token where spree is expecting to find it (request.headers['X-Spree-Order-Token']).Possible Solution
Update the axios post request in
getPaymentConfirmationDataso that the order_token is where spree is expecting to find it #255 .Steps to reproduce
return;to line 152 (followingawait savePayment.value();) inPayment.vueto prevent order proceeding to complete.What version of Spree integration are you using?
1.3.0
What version of Node.js are you using?
14.20.0
What browser (and version) are you using?
Chrome
What operating system (and version) are you using?
Ubuntu
Relevant log output
No response
Code of Conduct