From 454a1699444faec6f1733aadc9b7c384e0108d10 Mon Sep 17 00:00:00 2001 From: zbuse <5518208+zbuse@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:51:15 +0800 Subject: [PATCH] Update StripeAlipay.php --- app/Payments/StripeAlipay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Payments/StripeAlipay.php b/app/Payments/StripeAlipay.php index ec2bc9a..d95e0b1 100644 --- a/app/Payments/StripeAlipay.php +++ b/app/Payments/StripeAlipay.php @@ -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]; }