作者 lyh

gx

@@ -89,11 +89,8 @@ class PayStripeApi @@ -89,11 +89,8 @@ 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 - if($currency == 'usd'){  
95 - $data['payment_method'] = 'pm_card_visa';  
96 - }  
97 return $this->sendRequest($url, 'POST', $data); 94 return $this->sendRequest($url, 'POST', $data);
98 } 95 }
99 96