|
...
|
...
|
@@ -18,7 +18,7 @@ class PayStripeApi |
|
|
|
private $secretKey;
|
|
|
|
//币种对应支付方式
|
|
|
|
public $currency_types = [
|
|
|
|
'usd' => ['card', 'cashapp', 'link', 'alipay', 'wechat_pay', 'afterpay_clearpay'],
|
|
|
|
'usd' => ['card'],
|
|
|
|
// 'eur' => ['card', 'ideal', 'giropay', 'sofort', 'bancontact', 'klarna', 'link'],
|
|
|
|
// 'gbp' => ['card', 'apple_pay', 'google_pay', 'klarna', 'link', 'afterpay_clearpay'],
|
|
|
|
// 'aud' => ['card', 'afterpay_clearpay', 'apple_pay', 'google_pay'],
|
|
...
|
...
|
@@ -89,7 +89,7 @@ class PayStripeApi |
|
|
|
$data = [
|
|
|
|
'amount' => $amount,
|
|
|
|
'currency' => $currency,
|
|
|
|
'payment_method_types' => $this->currency_types[$currency],
|
|
|
|
'automatic_payment_methods' => ['enabled' => true],
|
|
|
|
];
|
|
|
|
return $this->sendRequest($url, 'POST', $data);
|
|
|
|
}
|
...
|
...
|
|