#shivank_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/1239865133346455582
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
$paymentIntent = \Stripe\PaymentIntent::create(
[
'amount' => 1100,
'currency' => 'usd',
'automatic_payment_methods' => ['enabled' => true, 'allow_redirects' => 'never'],
'customer' => 'XXX',
'payment_method' => 'XXX',
'confirm' => true,
]
);
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
๐ taking over for my colleague. Let me catch up.
this is related to https://docs.stripe.com/india-recurring-payments
ok
So exactly what should I do here?
because I need to do same for US based website and Client
for Indian cards you need to create e-mandates
For US it is this req_feGJZURYX1qBVL
but in all cases your request is missing the off_session: true
Can you please refer to US account req_feGJZURYX1qBVL
I did
So I need to pass off_session: true PaymentIntent::create API call ?
let's step back for a second here
Sure
I was following some document
Subscription is created Successfully
and I want to capture payment on that Subscription
what do you mean by that?
Let me say it from Start
I have created customer using API, then registered credit card for that customer using the Card Create APi
I Have created Subscription for that Customer usng Subscription :: Create
that's not recommended at all
then what should I follow here ?
this is the flow we recommend
Actaully my CLient was saying he will register the Cards first
For that I have created Customer and Cards under it using the Api calls
that's not something we recommend doing at all
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So this is not recommended ?
yes you shouldn't use that
you should create the PM on the frontend using our Stripe.js (for the web) or our mobile SDKs
otherwise you would need to be PCI/DSS compliant and would have to handle tons of validations/regulations