I have created a recurring charge with capped amount of $49.99. I checked the Recurring Charge API and its showing capped amount correclty ($49.44) in the result.
However, when I try to create a usage charge above $49.99 say, $486.72, the usage charge is getting created without giving any error regarding the capped amount exceeded and when I pull up the Usage Charge API result I can see the balance remaining as some negative number.
array (
'usage_charge' =>
array (
'id' => xxxxx,
'description' => 'xxxxxxx',
'price' => '486.72',
'created_at' => '2021-11-26T04:34:51-06:00',
'billing_on' => '2021-11-26',
'balance_used' => 491.71,
'balance_remaining' => -441.71999999999997,
'risk_level' => 0.0,
),
)
Why its creating the usage charge above the capped amount? How can I restrict to create usage charge upto capped amount only?