#yoftahe_api

1 messages ¡ Page 1 of 1 (latest)

raw tinselBOT
#

👋 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.

mossy egret
#

Hi, let me help you with this.

#

Could you please share the PaymentIntent ID pi_xxx?

#

What do you mean by "offsite checkout" exactly?

topaz knoll
#

Hey thanks

#

What I mean is when payment method is activated (selected) it goes to stripe hosted checkout page

mossy egret
#

Ok, could you please share the Stripe Checkout ID/URL then?

topaz knoll
topaz knoll
#

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

mossy egret
#

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.

topaz knoll
#

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

mossy egret
#

I am not exactly sure what payment method types are supported in India. Let me check...

topaz knoll
#

Also check possibility for the INR currency to use the payment methods even from a different country thanks

mossy egret
topaz knoll
mossy egret
#

No, unfortunately.

topaz knoll
#

Thank you for your time.

mossy egret
#

Happy to help.