From e77838d71f4edbfb4d575d41a4a83a7c360b6fdd Mon Sep 17 00:00:00 2001 From: zbuse <5518208+zbuse@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:50:13 +0800 Subject: [PATCH] Update StripeCheckout.php update rates --- app/Payments/StripeCheckout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Payments/StripeCheckout.php b/app/Payments/StripeCheckout.php index cd0688e..096b733 100644 --- a/app/Payments/StripeCheckout.php +++ b/app/Payments/StripeCheckout.php @@ -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]; }