Currently, monetary values coming back as floats from Reseller Club API responses are assumed to be GBP- or USD-like, and multiplied by 100 to get the value in pence/cents.
Instead, detect the subunit from the currency and then multiply the amount by that to the power of 10, i.e.
$subunit = $currencies->subunitFor($currency);
$amount = $amount * pow(10, $subunit);
Currently, monetary values coming back as floats from Reseller Club API responses are assumed to be GBP- or USD-like, and multiplied by
100to get the value in pence/cents.Instead, detect the subunit from the currency and then multiply the amount by that to the power of 10, i.e.