#divyashaliniics_code

1 messages ¡ Page 1 of 1 (latest)

stable cliffBOT
#

👋 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.

thin prism
#

Hi, let me help you with this.

#

Why you don't want to associate it with a Customer?

vivid sinew
#

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

thin prism
#

with a provision for 1 time charge to the card
What does this mean?

vivid sinew
thin prism
vivid sinew
#

Let me check this, please don't close the thread window

vivid sinew
#

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

thin prism
#

Have you looked through the guide I shared?

vivid sinew
#

We are getting this error in response

thin prism
vivid sinew
#

Yeah we checked this also, but card details are required to be saved

#

From which card it been deducted

#

That payment intent

thin prism
#

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

vivid sinew
#

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

vivid sinew
vivid sinew
#

Just adding card as guest user, and do payment

thin prism
#

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.

vivid sinew
#

Ok, let me check that

stable cliffBOT
vivid sinew
#

Hello

sharp birch
#

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

vivid sinew
#

May I know how to get the full card details after adding details from stripe.confirmSetup?

sharp birch
#

What do you mean by full card details?

sharp birch
vivid sinew
#

Means I require cardNumber and CVC

sharp birch
#

By design, you cannot do that, those are collected securely by Stripe and not exposed to you.

#

This is part of how Stripe makes PCI compliance less onerous.