#vaidehi

1 messages · Page 1 of 1 (latest)

visual caveBOT
snow kelp
#

Hello

#

As the error states, you shouldn't be hadnling raw card details on your server

#

So can you tell me why you are doing this?

#

Also is that a real card number in your screenshot?

#

Please delete that image immediately

#

This is a public server and you shouldn't be showing any sensitive data here

pseudo cairn
#

so , actually we are calling payment_intents api, in which we are getting client _secreat value, after that we are calling payment_intents/id/confirm api but in that we are getting below error

"message": "You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method.",

thats why we are calling payment methodsapi

snow kelp
#

Okay so yeah you want to solve that error, not try to create a PaymentMethod server-side

#

Also make sure you are doing this all in test mode

#

Not live mode

#

So the issue is it sounds like you are trying to confirm on your server as well

#

Instead of your client

#

You should be using Stripe.JS to handle confirmation

visual caveBOT
snow kelp
#

What integration flow are you attempting to work with? Are you following a certain set of docs?

pseudo cairn
#

root issue we are facing is below error
"message": "PaymentMethods of type card cannot be attached to Customers directly without 3DS due to Indian payment regulations. Please instead provide the PaymentMethod and Customer alongside a SetupIntent or PaymentIntent with the setup_future_usage parameter. See https://support.stripe.com/questions/guide-for-saving-cards-in-india for more details.",

we are flutter developers and try to implement stripe payment flow inside our application, while adding new card we are getting this error from customers/cust_id/sources api

snow kelp
#

Gotcha

#

Where it explains how to set the necessary mandate info for an Indian card

pseudo cairn
#

but we are using shopify server , so we dont have any other server or backend , we have to perform every action on client side only