#mexner-deferred-wallets
1 messages · Page 1 of 1 (latest)
We did, but the modal that pops up for Google Pay (as an example), won't render because the amount hasn't been specified.
Okay so you have a real question behind the original question. So what's your real question? What did you try, what does your code look like, what error(s) do you get in the console, etc.? Please try to share a complete end to end summary of what you are seeing so that I can best help you
ah... ok, i'll post another question once I get all of those facts together. Thank you.
please don't post another question, just share a clear summary here of all you found
oh, ok - will do!
I just tried and it works totally fine for me, took me 30s
mode: 'payment',
amount: 1234,
currency: 'usd',
//paymentMethodTypes: ['affirm', 'customer_balance'],
};
console.log(options);
const stripe = Stripe('<?= STRIPE_KEY_PUBLISHABLE; ?>');
var elements = stripe.elements(options);
const paymentElement = elements.create(
'payment',
{
fields: {
billingDetails: {
address: {
postalCode: 'never',
},
},
},
}
);``` that's how I initialize PaymentElement and it shows Google Pay as expected