Create WC payment method from card payment token

This commit is contained in:
Emili Castells Guasch 2023-12-12 17:23:47 +01:00
parent 8a4bcc55a1
commit 10e79cbcdc
3 changed files with 40 additions and 14 deletions

View file

@ -88,6 +88,7 @@ const init = () => {
},
body: JSON.stringify({
nonce: ppcp_add_payment_method.ajax.create_setup_token.nonce,
payment_method: PaymentMethods.CARDS
})
})
@ -106,6 +107,7 @@ const init = () => {
body: JSON.stringify({
nonce: ppcp_add_payment_method.ajax.create_payment_token.nonce,
vault_setup_token: vaultSetupToken,
payment_method: PaymentMethods.CARDS
})
})