Skip to content

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

Open
@mdavo6

Description

@mdavo6

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions