#shivank_api

1 messages ยท Page 1 of 1 (latest)

ivory lilyBOT
#

๐Ÿ‘‹ 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.

thin holly
#

$paymentIntent = \Stripe\PaymentIntent::create(
[
'amount' => 1100,
'currency' => 'usd',
'automatic_payment_methods' => ['enabled' => true, 'allow_redirects' => 'never'],
'customer' => 'XXX',
'payment_method' => 'XXX',
'confirm' => true,

    ]
);
worn yarrowBOT
half storm
ivory lilyBOT
warped heath
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

thin holly
#

ok

#

So exactly what should I do here?

#

because I need to do same for US based website and Client

warped heath
#

for Indian cards you need to create e-mandates

thin holly
#

For US it is this req_feGJZURYX1qBVL

warped heath
#

but in all cases your request is missing the off_session: true

thin holly
#

Can you please refer to US account req_feGJZURYX1qBVL

warped heath
#

I did

thin holly
#

So I need to pass off_session: true PaymentIntent::create API call ?

warped heath
#

let's step back for a second here

thin holly
#

Sure

#

I was following some document

#

Subscription is created Successfully

#

and I want to capture payment on that Subscription

warped heath
thin holly
#

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

thin holly
#

then what should I follow here ?

warped heath
#

this is the flow we recommend

thin holly
#

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

warped heath
#

that's not something we recommend doing at all

thin holly
#

So this is not recommended ?

warped heath
#

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

ivory lilyBOT