You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Currently, the useBillingData hook is available for extracting billing specific data and setting that on the PaymentMethodData context. This in turn should probably persist to the cart store so that when checkout processing is kicked off, it can get all that it needs from the cart store.
A rough outline of tasks:
Rework what needs reworked in PaymentMethodDataContext so that billing data is either persisted to it's local store and/or the cart store and exposed on the useBillingData hook (including setting billing data).
Account for when the use same address for billing checkbox is checked so changes to shipping address are replicated to the billing data state.
Email address will need included with billing data.
payment method data is something provided by payment methods action dispatches (see setPaymentStatus.success and setPaymentStatus.fail actions. It is arbitrary data that is passed through to the server on the checkout processing event and then payment methods hook in server side to pick up that passed through data to finish processing along with the checkout processing. Note: this is pretty much how things happen in the current checkout in terms of data transfer shape from client to server. So the work needed here will be ensuring that paymentMethodData is added to the cart store so that checkout context can pick that up (via a usePaymentMethodData hook?) for including in the checkout processing request.
The text was updated successfully, but these errors were encountered:
Currently, the
useBillingData
hook is available for extracting billing specific data and setting that on thePaymentMethodData
context. This in turn should probably persist to the cart store so that when checkout processing is kicked off, it can get all that it needs from the cart store.A rough outline of tasks:
PaymentMethodDataContext
so that billing data is either persisted to it's local store and/or the cart store and exposed on theuseBillingData
hook (including setting billing data).use same address for billing
checkbox is checked so changes to shipping address are replicated to the billing data state.setPaymentStatus.success
andsetPaymentStatus.fail
actions. It is arbitrary data that is passed through to the server on the checkout processing event and then payment methods hook in server side to pick up that passed through data to finish processing along with the checkout processing. Note: this is pretty much how things happen in the current checkout in terms of data transfer shape from client to server. So the work needed here will be ensuring thatpaymentMethodData
is added to the cart store so that checkout context can pick that up (via ausePaymentMethodData
hook?) for including in the checkout processing request.The text was updated successfully, but these errors were encountered: