mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Revert commit as payment_source
is needed for creating the vaulted payment
This commit is contained in:
parent
90c364cb60
commit
c5a90d8ca3
1 changed files with 0 additions and 4 deletions
|
@ -36,8 +36,6 @@ loadPaypalJsScript(
|
|||
}
|
||||
},
|
||||
onApprove: async ({ vaultSetupToken }) => {
|
||||
console.log(vaultSetupToken)
|
||||
|
||||
const response = await fetch(ppcp_add_payment_method.ajax.create_payment_token.endpoint, {
|
||||
method: "POST",
|
||||
credentials: 'same-origin',
|
||||
|
@ -60,8 +58,6 @@ loadPaypalJsScript(
|
|||
`#ppc-button-${PaymentMethods.PAYPAL}-save-payment-method`
|
||||
);
|
||||
|
||||
|
||||
|
||||
const init = () => {
|
||||
setVisibleByClass(ORDER_BUTTON_SELECTOR, getCurrentPaymentMethod() !== PaymentMethods.PAYPAL, 'ppcp-hidden');
|
||||
setVisible(`#ppc-button-${PaymentMethods.PAYPAL}-save-payment-method`, getCurrentPaymentMethod() === PaymentMethods.PAYPAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue