#akii-PaymentIntent

1 messages · Page 1 of 1 (latest)

desert bolt
#

Hi @unreal topaz the PaymentIntent API doesn't allow line_items at this moment. You can pass line_items in Orders API and Checkout Session API

unreal topaz
#

Okay

#

Then how will i send the amount?

#

First get amount from the priceId?

desert bolt
#

Which API are you talking about?

unreal topaz
#

I meant how do i get the amount of a Price ?

#

Which API do i use for that?

desert bolt
unreal topaz
#

okay thanks

desert bolt
#

As I explained earlier, you can't pass line_items to PaymentIntent creation API.

You can still use the SetupIntent API to collect the PaymentMethod, and you can use the PaymentMethod with Orders API or Checkout Sessions API.

unreal topaz
#

If i dont have a paymnet method yet for the user. I also wanted a custom flow so i dont want to use Checkout Sessions API

desert bolt
#

Sorry I don't understand the question, can you elaborate?

unreal topaz
#

If i use Checkout Sessions, and lets suppose the user does not have any Payment Method saved yet.

#

Will that work?

desert bolt
#

Hmm, or maybe you can tell me what's the expected result you want to get from Checkout sessions?

unreal topaz
#

I want to add user to the subscription, and pay for it, and save the Credit Card as default too..

desert bolt
unreal topaz
#

Okay ill try this out