mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-01 23:18:13 -05:00
Update StripeCheckout.php
update rates
This commit is contained in:
parent
2e08328ec1
commit
e77838d71f
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user