Merge pull request #3169 from woocommerce/PCP-4256-shipping-callback-not-loading-despite-being-enabled

Shipping Callback not loading despite being enabled (4256)
This commit is contained in:
Emili Castells 2025-03-18 11:46:11 +01:00 committed by GitHub
commit 9f417f11be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 26 deletions

View file

@ -21,8 +21,8 @@ export const handleShippingOptionsChange = async ( data, actions, config ) => {
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json',
'X-WC-Store-API-Nonce':
config.ajax.update_customer_shipping.wp_rest_nonce,
'Nonce':
config.ajax.update_customer_shipping.wp_rest_nonce,
},
body: JSON.stringify( {
rate_id: shippingOptionId,
@ -106,9 +106,9 @@ export const handleShippingAddressChange = async ( data, actions, config ) => {
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json',
'X-WC-Store-API-Nonce':
config.ajax.update_customer_shipping
.wp_rest_nonce,
'Nonce':
config.ajax.update_customer_shipping
.wp_rest_nonce,
},
body: JSON.stringify( {
shipping_address: cartData.shipping_address,