#anhle82 - payment element
1 messages ยท Page 1 of 1 (latest)
no i don't
@fossil pulsar - please write in your follow ups on the thread so we can chat in one place
yes, i just realized that
You'd need to set that up first as it won't show without it
how about pay later option?
Let me look on my end.. Are you able to share your URL with me so I can further investigate this?
I'm working locally in dev environment so can't share but I can provide any information that you need
Can you confirm that you're referring to Affirm? https://stripe.com/docs/payments/buy-now-pay-later#product-support
I'm referring to all the payment methods that I turned on via setting
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I was expecting after migrating to Payment Element, my stripe form would look something like below with different payment method option: card, bank, pay later...
I see, what guidelines are you following to migrate to Payment elements?
Are your payment methods turned on here https://dashboard.stripe.com/settings/payment_methods?
It does not appear that you've fully integrated to Payment Elements yet.
Are you able to tell me what did I miss?
'automatic_payment_methods' => [
'enabled' => 'true',
]
was provided to payment intent creation call
Could you share some snippet of your code here so I can help debug?
yes
With your existing integration using the Payment Intents correct, you have the correct guide.
Can I give you a payment intent example in test mode? Will that help?
pi_3Kv6hg2O1y39ZmSu1VBQZByi
Looking here to see how I can debug this with you.. give me a few minutes please.
Great, I was trying to test it on my test environment. Glad you got it figured it out.
But still don't see apple pay option when trying out on my phone
ah, look like I have to config apple pay via payment method setting
Can you see Google pay in Chrome?
Apple pay does have additional steps you'd need to take to show.
ah, let my try chrome
I don't see google pay in chrome
oh, is it integrated directly into the card number?
look like it's
As long as you have your Google wallet set up, you should be able to see the button. I'm unsure what you're referring to with 'integrated directly into the card number'.
i don't see the button
Saved cards on your browser is not the same as a Google wallet.
Can you go to this page, https://rsolomakhin.github.io/pr/gp2/ and see if your Google pay works after clicking on 'Buy'?
You can exit out of it right away.. If the wallet is set up properly, you should see 'Can make payment'
Can you reload the payment elements and see if it shows now on that page?
Can you see the Google Pay above the tabs here? https://stripe.com/docs/stripe-js/elements/payment-request-button
Yes
Does your URL start https? Is it an insecure page?
it's a secure page
Do you see any errors or warning on the Console?
only warning about afterpay and klarma
The following payment method types are not activated:
- afterpay_clearpay
- klarna
They will be displayed in test mode, but hidden in live mode. Please activate the payment method types in your dashboard (https://dashboard.stripe.com/settings/payment_methods) and ensure your account is enabled for any preview features that you are trying to use.
Can you share another payment intent example for after the payment element started working?
pi_3Kv7C22O1y39ZmSu1yiT4REn
๐ I'm just hopping in since @small slate needs to head out soon
Just to confirm - is the current state of things that Google Pay is not showing up as expected with your Payment Element integration?
hi karbi, that is correct
And are you testing in incognito mode? Or in a normal window?
in normal window
Gotcha - do you have site I could access to try this out on my end?
no, but let me do it. give me 5 minutes
please click the link, add something to cart and checkout
I see Google Pay show up on my end - this means that something is wrong with your specific google pay cards on your environment
can you show me a screenshot so I know what to expect the screen look like?
This is what I see on my end:
๐ awesome!
Regarding apple pay, is the configure file required to be hosted on my server indefinitely or I can delete it after stripe verify?
We generally recommend that you keep it around just in case Apple needs to check again
the reason I asked is because I use domain alias to run multiple websites using the same code base. How can I config apple pay for my scenario?
never mind, I think I will use htaccess to handle this
one last question, before migrating to Payment Element, I set setup_future_usage = "off_session" to save card details. With Payment Element, I can't set setup_future_usage because it will hide pay later options. Is it possible show all the payment method options and also save card details if customer select card option?
Sorry I missed your earlier question!
For your latest question, instead of setting setup_future_usage top level on the Payment Intent, I believe you can set payment_method_options[card][setup_future_usage] (see https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card-setup_future_usage) to only have it apply to card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
perfect. Thanks a lot @surreal stone I will test it out later today. Appreciate your help!
๐