mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 19:20:56 -04:00
Fixes for paypal in subscriptions
This commit is contained in:
parent
36fef6beb3
commit
2f03a13d34
@ -356,14 +356,13 @@ class BillingPortalPurchase extends Component
|
|||||||
|
|
||||||
$this->methods = $contact->client->service()->getPaymentMethods($this->price);
|
$this->methods = $contact->client->service()->getPaymentMethods($this->price);
|
||||||
|
|
||||||
foreach($this->methods as $method){
|
$method_values = array_column($this->methods, 'is_paypal');
|
||||||
|
$is_paypal = in_array('1', $method_values);
|
||||||
|
|
||||||
if($method['is_paypal'] == '1' && !$this->steps['check_rff']){
|
if($is_paypal && !$this->steps['check_rff'])
|
||||||
$this->rff();
|
$this->rff();
|
||||||
break;
|
elseif(!$is_paypal && !$this->steps['check_rff'])
|
||||||
}
|
$this->steps['fetched_payment_methods'] = true;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->heading_text = ctrans('texts.payment_methods');
|
$this->heading_text = ctrans('texts.payment_methods');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user