#feminaagravat_39821

1 messages · Page 1 of 1 (latest)

pale nestBOT
woven birch
gloomy canyon
#

I think Schedule subscription .But can we pass decimal amount ?

#

When i apply promo it turn amount like 61.78

woven birch
#

Is that $61.78? Our prices USD prices are in cents so you can set that up

gloomy canyon
#

How can i set that ?

woven birch
#

Can you tell me the prices that you are trying to set at the moment?

gloomy canyon
#

61.78 USD

#

For scheduled Subscription

woven birch
#

This doc should be helpful for you

#

You can create a price like that and then use it with the subscription

gloomy canyon
#

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,

        ];
woven birch
#

Okay then you can pass that in to unit_amount right?