#mexner-deferred-wallets

1 messages · Page 1 of 1 (latest)

scarlet zincBOT
woeful flax
#

@ancient tusk yes

#

easiest is really just to try :p

#

mexner-deferred-wallets

ancient tusk
#

We did, but the modal that pops up for Google Pay (as an example), won't render because the amount hasn't been specified.

woeful flax
#

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

ancient tusk
#

ah... ok, i'll post another question once I get all of those facts together. Thank you.

woeful flax
#

please don't post another question, just share a clear summary here of all you found

ancient tusk
#

oh, ok - will do!

woeful flax
#

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