From 34bff4558d49d4c222374479a390d7f0e9207d98 Mon Sep 17 00:00:00 2001 From: zbuse <5518208+zbuse@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:50:38 +0800 Subject: [PATCH] Update StripeCheckout.php --- 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]; }