Convert saved payment methods token to a string (https://github.com/woocommerce/woocommerce-blocks/pull/3627)
* Allow integers in payment_data values * Revert "Allow integers in payment_data values" This reverts commit b7f2ca4a5b696091afe796f47e84f584a0b27d9e. * Enforce payment tokens to be strings
This commit is contained in:
parent
9a537fdab5
commit
de2796ca4e
|
@ -47,7 +47,7 @@ const getCcOrEcheckPaymentMethodOption = (
|
|||
setActivePaymentMethod( method.gateway );
|
||||
setPaymentStatus().success( {
|
||||
payment_method: method.gateway,
|
||||
[ savedTokenKey ]: token,
|
||||
[ savedTokenKey ]: token + '',
|
||||
isSavedToken: true,
|
||||
} );
|
||||
},
|
||||
|
@ -81,7 +81,7 @@ const getDefaultPaymentMethodOptions = (
|
|||
setActivePaymentMethod( method.gateway );
|
||||
setPaymentStatus().success( {
|
||||
payment_method: method.gateway,
|
||||
[ savedTokenKey ]: token,
|
||||
[ savedTokenKey ]: token + '',
|
||||
isSavedToken: true,
|
||||
} );
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue