作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -18,7 +18,7 @@ class PayStripeApi @@ -18,7 +18,7 @@ class PayStripeApi
18 private $secretKey; 18 private $secretKey;
19 //币种对应支付方式 19 //币种对应支付方式
20 public $currency_types = [ 20 public $currency_types = [
21 - 'usd' => ['card', 'cashapp', 'link', 'alipay', 'wechat_pay', 'afterpay_clearpay'], 21 + 'usd' => ['card'],
22 // 'eur' => ['card', 'ideal', 'giropay', 'sofort', 'bancontact', 'klarna', 'link'], 22 // 'eur' => ['card', 'ideal', 'giropay', 'sofort', 'bancontact', 'klarna', 'link'],
23 // 'gbp' => ['card', 'apple_pay', 'google_pay', 'klarna', 'link', 'afterpay_clearpay'], 23 // 'gbp' => ['card', 'apple_pay', 'google_pay', 'klarna', 'link', 'afterpay_clearpay'],
24 // 'aud' => ['card', 'afterpay_clearpay', 'apple_pay', 'google_pay'], 24 // 'aud' => ['card', 'afterpay_clearpay', 'apple_pay', 'google_pay'],
@@ -89,7 +89,7 @@ class PayStripeApi @@ -89,7 +89,7 @@ class PayStripeApi
89 $data = [ 89 $data = [
90 'amount' => $amount, 90 'amount' => $amount,
91 'currency' => $currency, 91 'currency' => $currency,
92 - 'payment_method_types' => $this->currency_types[$currency], 92 + 'automatic_payment_methods' => ['enabled' => true],
93 ]; 93 ];
94 return $this->sendRequest($url, 'POST', $data); 94 return $this->sendRequest($url, 'POST', $data);
95 } 95 }
@@ -141,6 +141,6 @@ class Extension3059ModuleController extends BaseController @@ -141,6 +141,6 @@ class Extension3059ModuleController extends BaseController
141 $this->fail('error,请联系管理员'); 141 $this->fail('error,请联系管理员');
142 } 142 }
143 DB::disconnect('custom_mysql'); 143 DB::disconnect('custom_mysql');
144 - $this->response('success',Code::SUCCESS,$payData); 144 + $this->response('success - The page is about to be redirected to the payment page',Code::SUCCESS,$payData);
145 } 145 }
146 } 146 }