#koks_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1390492156602351757
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
hello ๐ you can specify "card" under payment method types for Apple Pay or Google Pay
thanks, let me try
Do ensure that you're using a supported browser too. Certain payment methods works only in specific browsers: https://docs.stripe.com/elements/express-checkout-element#supported-browsers
hi @rose thunder i saw that you removed the previous message. Are you still facing the same error?
sorry, i figured the error which i had mentioned. I'm getting this error now
code snippet
Could you share with me the PaymentIntent ID in your log please? Its prefixed with pi_
pi_3RgxmGPJyrrClAxy2uBGqKSC_secret_lECTn4NDZiY5qoekmhZB0ykn9
thanks, taking a look
Hmm so this is the error I'm seeing in your Stripe account: https://dashboard.stripe.com/test/logs/req_EDgWehW14oIpjB
If your payment intent is going to declare "card" under Payment Method Type, you'd need to define the accepted paymentMethods that Express Checkout Element accepts as well: https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-paymentMethods
Oops sorry, please try again
it works now
elements.create("expressCheckout", {
paymentMethods: {
googlePay: 'always'
}
});
should i do like this ?
yup, that will display Google Pay when a supported browser is used
hmm yes I still see the same error, give me awhile to run my test
ok
at the top of your code snippet, under const options ={ mode: , amount:, currency: }, try adding a line and declare payment_method_types: ['card']
the purpose is to make the ECE and the PaymentIntent expects the same payment method
ok let me try
i just tried and not received any error. Did it go through successfully? pi_3RgyELPJyrrClAxy16UIfOQf
Yup pi_3RgyELPJyrrClAxy16UIfOQf succeeded. This was the confirmation request made that you can view from your Dashboard: https://dashboard.stripe.com/test/logs/req_NN5zmEoY7yILnQ
Okay, so what does the failure look like?
where is it suppose to redirect to? does the link work?
it is the same link from where i initiated booking...you can check the url from screenshot only
From your code snippet, when I visit the raw url https://urbanmop--urbanmodev.sandbox.lightning.force.com/lightning/n/Tets_Stripe_component, its telling me there's a login required which is likely why redirect is not successful. Please try using a page url that doesn't require login to see if the redirect is successful