Add card fields payment method (WIP)

This commit is contained in:
Emili Castells Guasch 2023-12-12 12:23:47 +01:00
parent 45516d0075
commit a1dfb52cbb
2 changed files with 199 additions and 49 deletions

View file

@ -87,3 +87,11 @@ export const loadPaypalJsScript = (options, buttons, container) => {
paypal.Buttons(buttons).render(container);
});
}
export const loadPaypalJsScriptPromise = (options) => {
return new Promise((resolve, reject) => {
loadScript(options)
.then(resolve)
.catch(reject);
});
}