@demyz/checkout-utils
v1.0.5
Published
Checkout Utils
Downloads
7
Readme
Google Payments Client
import {
GooglePay,
} from '@demyz/checkout-utils';
const params = {
...GooglePay.defaultGooglePayParams,
buttonContainerElement: document.getElementById('gpay-container'),
}
const main = async () => {
try {
await GooglePay.loadGooglePayScript();
const gPay = new GooglePayments();
await gPay.init(params);
} catch(e) {
console.error(e);
}
}
main();