#viper-price-dynamic
1 messages · Page 1 of 1 (latest)
Okay so you do use Checkout. In that case the API supports passing price_data instead of a Price id: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Just to clarify if I understand correctly ,
I can edit create-checkout-session.php and then in line_items I can add something like this :
'unit_amount' => 5000,
'currency' => 'usd',
]```
And I can set any amount I wish each time!
Correct?
Correct. That will set the price to whatever you set for unit_amount
Thank you very much for your quick reply! Appreciate a lot!