#balram_api

1 messages ¡ Page 1 of 1 (latest)

prisma fractalBOT
#

👋 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/1237308441727336448

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

spare cove
#

No

#

You can only confirm one PaymentIntent in one API request.

faint maple
#

In case of paypal payment if we create multiple payment intent in single checkout flow then User have to confirm multiple times from stripe paypal window?

spare cove
#

What do you mean by "create multiple payment intent in single checkout flow" ?

#

Can you walk me through with an example?

faint maple
#

In our checkout flow we have both subscription transaction and a straight sale transaction, So we are creating two separate intent for subscription by using subscription API and for straight sale create a payment intent and we are using the Paypal payment through stripe.

spare cove
#

Ok so you have two PaymentIntents, one created by subscription invoice and the other created by your own, and you want to collect both payments with Paypal?

mortal barnBOT
prisma fractalBOT
faint maple
#

Not abjectly, But yes we are collecting the payments with PayPal as well as with card.

#

And subscription is also created on the same flow using subscription API.

outer falcon
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

faint maple
#

In our checkout flow we have both subscription transaction and a straight sale transaction, So we are creating two separate intent for subscription by using subscription API and for straight sale create a payment intent and we are using the Paypal payment through stripe.

outer falcon
#

Yes and what is the issue you are facing ?

faint maple
#

Can we send the line items in the payment Intent API?

#

Can you please assist me with the payment flow for Paypal payments with stripe. We want to charge two line items together where one item will be a Subscription product. We are using the below flow for the payment process.

We are using Direct API flow.
#1 Creating PaymentIntent server side
#2 submit the payment to Stripe
#3 Confirm PayPal payment
#4 Handling the redirect

But we are unable to charge both the line items at once

outer falcon
#

Can we send the line items in the payment Intent API?
No you can specify just the amount

#

What you can do is to create a Subscipriton and add additionam invoice items

#

and then use paypal in order to pay the resulting invoice that has both items (recurring and one-time)

faint maple
#

Okay let us check once and we will revert back to you. Thank You