Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Payment confirmation data does not pass spree_authorize! #254

Open
1 task done
mdavo6 opened this issue Aug 17, 2022 · 0 comments
Open
1 task done

[Bug]: Payment confirmation data does not pass spree_authorize! #254

mdavo6 opened this issue Aug 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mdavo6
Copy link
Contributor

mdavo6 commented Aug 17, 2022

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

  1. Create order using latest version of Vue Spree (1.3.0).
  2. Add return; to line 152 (following await savePayment.value();) in Payment.vue to prevent order proceeding to complete.
  3. 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

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant