Update StripeAlipay.php

This commit is contained in:
zbuse 2024-01-24 17:51:15 +08:00 committed by GitHub
parent 2e08328ec1
commit 454a169944
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,7 @@ class StripeAlipay {
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];
}