|
...
|
...
|
@@ -89,11 +89,8 @@ class PayStripeApi |
|
|
|
$data = [
|
|
|
|
'amount' => $amount,
|
|
|
|
'currency' => $currency,
|
|
|
|
'payment_method_types' => $this->currency_types[$currency],
|
|
|
|
'automatic_payment_methods' => ['enabled' => true],
|
|
|
|
];
|
|
|
|
if($currency == 'usd'){
|
|
|
|
$data['payment_method'] = 'pm_card_visa';
|
|
|
|
}
|
|
|
|
return $this->sendRequest($url, 'POST', $data);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|