mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update RotessaPaymentDriver.php
removed sleep mode as per request https://github.com/invoiceninja/invoiceninja/pull/9704#discussion_r1693679459 Signed-off-by: Kendall Arneaud <kendall.arneaud@gmail.com>
This commit is contained in:
parent
084b81e941
commit
aa5d43405c
@ -135,7 +135,6 @@ class RotessaPaymentDriver extends BaseDriver
|
||||
// create payment methods
|
||||
$client_contacts->each(
|
||||
function($contact) use ($customers) {
|
||||
sleep(10);
|
||||
$result = $this->gateway->getCustomersId(['id' => ($contact = (object) $contact)->id])->send();
|
||||
$this->client = Client::find($contact->client_id);
|
||||
$customer = (new Customer($result->getData()))->additional(['id' => $contact->id, 'custom_identifier' => $contact->custom_identifier ] );
|
||||
@ -148,7 +147,6 @@ class RotessaPaymentDriver extends BaseDriver
|
||||
$client_contacts = $customers->filter(function ($value, $key) use ($client_emails) {
|
||||
return !in_array(((object) $value)->email, $client_emails);
|
||||
})->each( function($customer) use ($company_id) {
|
||||
sleep(10);
|
||||
// create new client contact from rotess customer
|
||||
$customer = (object) $this->gateway->getCustomersId(['id' => ($customer = (object) $customer)->id])->send()->getData();
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user