Fixes for rotessa
This commit is contained in:
parent
00b801c550
commit
82eb344558
|
|
@ -27,7 +27,7 @@ class ContactComponent extends Component
|
||||||
|
|
||||||
$contact = collect($contact->client->contacts->firstWhere('is_primary', 1)->toArray())->merge([
|
$contact = collect($contact->client->contacts->firstWhere('is_primary', 1)->toArray())->merge([
|
||||||
'home_phone' => $contact->client->phone,
|
'home_phone' => $contact->client->phone,
|
||||||
'custom_identifier' => $contact->client->client_hash,
|
'custom_identifier' => $contact->client->number . 'X' . rand(1000, 9999),
|
||||||
'name' => $contact->client->name,
|
'name' => $contact->client->name,
|
||||||
'id' => null,
|
'id' => null,
|
||||||
])->all();
|
])->all();
|
||||||
|
|
|
||||||
|
|
@ -205,8 +205,11 @@ class RotessaPaymentDriver extends BaseDriver
|
||||||
|
|
||||||
public function findOrCreateCustomer(array $data)
|
public function findOrCreateCustomer(array $data)
|
||||||
{
|
{
|
||||||
|
nlog($data);
|
||||||
|
|
||||||
$result = null;
|
$result = null;
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$existing = ClientGatewayToken::query()
|
$existing = ClientGatewayToken::query()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue