Update StripeCheckout.php

update rates
This commit is contained in:
zbuse 2024-01-24 17:50:13 +08:00 committed by GitHub
parent 2e08328ec1
commit e77838d71f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,7 +133,7 @@ class StripeCheckout {
private function exchange($from, $to)
{
$result = file_get_contents('https://api.exchangerate.host/latest?symbols=' . $to . '&base=' . $from);
$result = file_get_contents('https://api.vatcomply.com/rates?base='. $from);
$result = json_decode($result, true);
return $result['rates'][$to];
}