#vaidehi
1 messages · Page 1 of 1 (latest)
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
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
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
What integration flow are you attempting to work with? Are you following a certain set of docs?
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Gotcha
Okay so the docs you want to follow are https://stripe.com/docs/india-recurring-payments?integration=paymentIntents-setupIntents
Where it explains how to set the necessary mandate info for an Indian card
Then you do the normal flow of passing your client secret to your client and calling confirmPayment like we show in: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
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