#ilyeselb

1 messages · Page 1 of 1 (latest)

hushed marshBOT
worldly sparrow
#

Hi there!

#

Wich PaymentIntents, you can only directly set an amount, and not a price.

jaunty seal
#

but then if i have subscription ?

worldly sparrow
#

And if you want to store additional information about the PaymentIntent, you could use the metadata field for this.

jaunty seal
#

i need to create it after the payment ?

worldly sparrow
#

What's your end goal? To create a Subscriptions?

jaunty seal
#

with the default pm ?

#

my goal is to pay for a subscitption

#

or another product with one time payment

#

with saved card

worldly sparrow
#

my goal is to pay for a subscitption
Do you have an existing Subscription, or you want to create a new one?

jaunty seal
#

i have a saved card

#

now on my site i have two type of product

#

subsctitpion and product that are paid with one time payment

#

i want to use my card for both

#

so ?

worldly sparrow
#

For one time payment: create a PaymentIntent object with the existing payment method and amount
For Subscripitons: create a Subscription object with the existing payment method and a price ID.

jaunty seal
#

and i set it to off session ?

#

on both

worldly sparrow
#

Correct.

jaunty seal
#

okay

#

thanks