#rizvan_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.
- rizvan_api, 4 days ago, 16 messages
👋 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/1235906729158643753
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! what sort of customer details are you wanting to send?
get the status of the payment done by a particular link sent to a customer
You get webhooks when a payment is made through the link: https://stripe.com/docs/payments/checkout/fulfill-orders
I am trying to integrate stripe into our CRM. So when we create a invoice and try to make a payment we will be send the payment link to our clients.
How do we identify which client has made the payment
then I wouldn't really use PaymentLinks, I would create a CheckoutSession or Invoice directly instead.
PaymentLinks are for easily putting a "buy now" button on a public site not tied to a specific customer. You're probably better off directly creating CheckoutSessions/Invoices in the API.
but we need a payment link to send it via mail or SMS
you can send a link to a page on your own siite, and that page then creates and redirects to a CheckoutSession, for example.
I really didnt get this step
Is it mandatory to create a product and then get the price_id of the product only then pass it to https://api.stripe.com/v1/checkout/sessions get create a checkout session? or we can just push products during the creation of a session
the response url from the checkout session can be used as the payment link?
you can pass details directly without a Price. Look at the examples on https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted which do that and don't use Prices.
no, in the sense that you can not email that link. Instead you redirect to it immediately after creating the CheckoutSession.
Yes understood but what if we want to create a link now and use it later as well?
you wouldn't; you would create a new CheckoutSession each time
Oh okay got
thanks
So I will need to redirect the site to the checkout session url that was just created?
yes
Should the customer be already created and we need to pass the customer id to create a checkout session?
because I passed a random name to the customer parameter and it said no such customer exists
if you want to associate the Session with a specific Customer you have an exsting cus_xxx Customer object and pass its ID yes
How to setup the payment account details to which the amount is credited to?
do you mean just adding your bank account to your Stripe account?
Yes
can we retrieve the payment status session of a checkout session?
sure
I suggest trying it out and reading the API reference(there's a payment_status field documented )
okay got it thanks
I am passing 5000 as the price of a product and currency is in INR but when i create a link or checkout session its displaying 50
Stripe API, accepts the smallest unit of each currency, so you need to take into considerations cents in your price value.
This is in rupees so should I enter 500000 to get 5000 rupees?