|
@@ -345,8 +345,11 @@ class Afterpay extends Payment
|
|
|
if (! in_array($billingCountry, $allowedCountries)) {
|
|
if (! in_array($billingCountry, $allowedCountries)) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ $currency = $info->order_currency_code ?? $info->cart_currency_code ?? false;
|
|
|
|
|
+ if ($currency != 'CAD' && $currency != 'USD') {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
// 检查订单金额是否在限额范围内
|
|
// 检查订单金额是否在限额范围内
|
|
|
// if ($info) {
|
|
// if ($info) {
|
|
|
// $grandTotal = $info->grand_total ?? $info->sub_total ?? 0;
|
|
// $grandTotal = $info->grand_total ?? $info->sub_total ?? 0;
|