#manish_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- manish_api, 5 hours ago, 16 messages
- manish_api, 6 days ago, 58 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1245820666008178890
đ Have more to share? Add details, code, screenshots, videos, etc. below.
howdy
Hola Amigo
What you're describing doesn't add up -- what does creating a payment method with raw card details have to do with creating a payment link? Can you explian the flow here?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see it in two ways Either of them works for me
- i create a payment link and the customer proceeds with the payment
- the customer provides the raw card details in my web app and we create a payment method for them in their account
These are very different things
And you should not collect raw card details directly, you should use Elements
Handling raw card details requires PCI compliance verification: https://stripe.com/docs/security/guide#validating-pci-compliance
and you'll need to contact support to request access to do this: https://support.stripe.com/contact
So if i create a payment link using the sdk, then the payment method gets stored in the customers data right?
What are you trying to do ultimately? Use the details later?
the payment details needs to be stored in the customerData.
Can you explain this more?
Okay so i have my web app its a customized erp
so when an order comes into the system we wish to create a payment link so that customer can proceed with the payment
if a customer has already done a payment on any of the previous order then he should be charged again for other order without entering the payment details again
If the payment is for a specific customer for specific items, you might want to use the Checkout Sessions API directly, instead of payment links, because you can specify the customer ID here and have the payment method saved for later use
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So all the payment methods are saved using checkout session or only one?
Customers can have multiple payment methods attached, or you can detach them, thats up to you
Then you'd retrieve those later to handle the future payments
in case of checkout session i dont need PCI compliance right?
It's a much lighter process, yes. See our docs or contact support for details about that: https://stripe.com/docs/security/guide#validating-pci-compliance
(because you'd never have access to the card details, there are fewer requirements)
i see
if i dont pass the customer_id while creating the checkout session, how it will identify if a customer with that info already exists? what will be the primary key?
It doesn't, it will create a new one (if necessary, based on the session configuration)
even if a customer with same details already exists it will create a new one
Yes
Understood
The exception is for subscription creation, which can be configured to limit customers to one subscription, so recognized email addresses will be redirected the customer portal (or your site) to manage their existing subscription:
https://docs.stripe.com/payments/checkout/limit-subscriptions
Thanks @stark wagon
I will create a new thread if i have any other doubts