#rupinder_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/1408357277001584705
📝 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.
- rupinder_api, 1 day ago, 9 messages
Hello, so I am using stripe js embed form
for some users this save card & pay via it is showing. Can you please guide me how can I test it and for which countries it is showing. The issue is user is not able to play via it
Hi! To prefill saved card payment methods, you can refer to: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form#save-payment-methods-to-prefill-them-in-checkout
does it shows for any specific country?
Sorry what do you mean by does it shows for any specific country? It should work for all countries.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Means it is not showing for all countries
That feature is available regardless what country
The issue here should be that some customer doesn't have saved payment methods
it is not showing always
Do you have an example, where the customer have saved PaymentMethod and isn't getting displayed ?
In max cases there is no option to save it
not sure how some users are getting this save thing
When you create the Checkout Session, you need to pass this attribute:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form#save-payment-methods-to-prefill-them-in-checkout
saved_payment_method_options
I donot have this anywhere in code but it is still allowing user to save
$checkout_session = $stripe->paymentIntents->create([
'amount' => round($grand_total * 100),
'currency' => $currency_code,
'customer' => $customer->id,
'metadata' => [
'country' => $system_region->code,
],
'payment_method_options' => [
'card' => [
'request_three_d_secure' => 'automatic',
],
],
'automatic_payment_methods' => [
'enabled' => true,
],
'shipping' => [
'name' => $user->name . ' ' . $user->last_name,
'address' => [
'line1' => $address->address,
'city' => $address->city_id,
'postal_code' => $address->postal_code,
'country' => $system_region->code,
'state' => isset($address->state_id) ? $address->state_id : ''
]
]
]);
I donot have this anywhere in code but it is still allowing user to save
That's Stripe Link, and not saving payment methods then
It's a Stripe PaymentMethod
Link isn’t available in India. In Brazil and Thailand, the Payment Element doesn’t support Link.
And yes, Link isn't available in all countries
You can disbale Link via your Dashboard:
https://dashboard.stripe.com/settings/link
And in your PaymentMethod settings, you need to disbale Link
https://dashboard.stripe.com/settings/payment_methods
Disabling Link by code, means removing the card payment_method_type:
https://docs.stripe.com/payments/link/checkout-link#accept-a-payment
I'm not sure if this is what you want, so that's why I didn't suggested to you as an option.
For Checkout Session and in your case, the only option is to disbale it from your Stripe Dashboard
ok
'automatic_payment_methods' => [
'enabled' => true,
],
if I disable this will it work
No. The only option to disable Link is via your Stripe Dashboard.
Yeah you need to disable all Link related options