#feminaagravat_39821
1 messages · Page 1 of 1 (latest)
yes you can do this either with a free trial or a subscription schedule
https://stripe.com/docs/billing/subscriptions/subscription-schedules
https://stripe.com/docs/billing/subscriptions/trials
I think Schedule subscription .But can we pass decimal amount ?
When i apply promo it turn amount like 61.78
Is that $61.78? Our prices USD prices are in cents so you can set that up
How can i set that ?
Can you tell me the prices that you are trying to set at the moment?
This doc should be helpful for you
You can create a price like that and then use it with the subscription
No I am using price_date to create price dyamically when i call the API
$itemArray = [
'price_data' => [
"currency"=>"USD",
'product'=>$product,
'unit_amount'=>$unitPrice * 100,
"recurring"=>[
"interval"=>"year"
]
],
'quantity' => 1,
];
Okay then you can pass that in to unit_amount right?