#divyashaliniics_code
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/1270351601751560215
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
We are introducing a new concept of anonymous customer in our application, with a provision for 1 time charge to the card
That's why we don't want to link any customer to the payment method
with a provision for 1 time charge to the card
What does this mean?
To create a payment intent which would be valid only once
Then you can just create a PaymentIntent to charge the card: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
Let me check this, please don't close the thread window
Right now we are using stripe.confirmSetup
Where card type is getting created in stripe
We required full cardnumber, cvc and epiry dates in response
Have you looked through the guide I shared?
Yes I checked
We are getting this error in response
As the error suggests, it seems like you provided a client_secret of a SetupIntent. However, the guide I shared requires creating a PaymentIntent instead: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#create-the-paymentintent
Yeah we checked this also, but card details are required to be saved
From which card it been deducted
That payment intent
Sorry, I don't understand. I thought you don't want to save the Payment Method and create a Customer:
To create a payment intent which would be valid only once
Ok let me explain again
Right now, we are following the steps of creating a customer then a connected account
Then we are adding card details in customer
And bank details in connected account
So doing this step right now adding customer id in payment method
But this new concept of anonymous customer doesn't require to save customer id
Just adding card as guest user, and do payment
Stripe objects don't need to necessarily match your own business logic. You can create a Stripe Customer under the hood, but use it for an "anonymous user" in your app.
Or, as I suggested above, just create a PaymentIntent and charge the provided card once.
Not saving it anywhere.
Ok, let me check that
Hello
Hey there, let me know if you have any more quesitons about this and I'd be happy to help now since my colleague needed to step away
May I know how to get the full card details after adding details from stripe.confirmSetup?
What do you mean by full card details?
Are you trying to access the raw card details?
Means I require cardNumber and CVC
Yes