spree-api-v2-js-sdk icon indicating copy to clipboard operation
spree-api-v2-js-sdk copied to clipboard

Add braintree_nonce to support spree_braintree_vzero.

Open mdavo6 opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I would like to add support for Braintree payments to Vue Spree (https://github.com/vuestorefront/spree/pull/261), using the spree_braintree_vzero gem. Vue Spree currently utilises v4.11.0 of spree-storefront-api-v2-js-sdk. The spree_braintree_vzero gem requires that a nonce be sent from the frontend to spree, however the Payment.ts interface only supports payment_method_id as an attribute.

Describe the solution you'd like. Add a new optional string attribute called braintree_nonce to IPayment.ts.

mdavo6 avatar Sep 01 '22 01:09 mdavo6