#PSN-checkout-ad-hoc-price

1 messages · Page 1 of 1 (latest)

lavish island
severe raptor
#

How?

#

I saw this doc

#

Using price_data?

#

Instead of price?

lavish island
#

If you share your code I can help update it

severe raptor
#

session = stripe.checkout.Session.create(
success_url=success_url,
cancel_url=cancel_url,
payment_method_types=['card'],
mode='payment',
line_items=[{
'price': int(amount) * 100,
# For metered billing, do not pass quantity
'quantity': 1
}],
)

#

line_items=[{
'price_data': {
'unit_amount': int(amount) * 100,},
# For metered billing, do not pass quantity
'quantity': 1
}],

#

Like this?

lavish island
lavish island
severe raptor
#

Ok let me try this

#

It’s working thanks