#yoftahe_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/1243477449740783652
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Could you please share the PaymentIntent ID pi_xxx?
What do you mean by "offsite checkout" exactly?
Hey thanks
What I mean is when payment method is activated (selected) it goes to stripe hosted checkout page
Ok, could you please share the Stripe Checkout ID/URL then?
its currently on my local site.
Its generated on the fly shall I generate one and send you?
here is one I just generated
Its created on the fly with this snipplet
$YOUR_DOMAIN = 'https://localhost:32769';
$checkout_session = $stripe->checkout->sessions->create([
'line_items' => [[
'price_data' => [
'currency' => 'inr',
'product_data' => [
'name' => 'Daily Sadhana',
],
'unit_amount' => 20000,
],
'quantity' => 1,
]],
'mode' => 'payment',
'success_url' => $YOUR_DOMAIN.'/success',
'cancel_url' => $YOUR_DOMAIN.'/cancel',
]);
header("HTTP/1.1 303 See Other");
header("Location: " . $checkout_session->url);
here when usd is used other payment methods become available
I see your account is based in the US. In this case, payments in INR are only possible with card. You could consider creating a separate Stripe account in India for this.
Would that mean then I can get Wechatpay, google pay, apple pay, link and cash app pay on my checkout page wheile still selecting inr as my currency
I am not exactly sure what payment method types are supported in India. Let me check...
Also check possibility for the INR currency to use the payment methods even from a different country thanks
Ok, sorry for confusion. I think INR and India Stripe accounts only support cards: https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india
So I guess there is no workaround this?
No, unfortunately.
Thank you for your time.
Happy to help.