Fixes for rotessa

This commit is contained in:
David Bomba 2025-05-21 09:15:09 +10:00
parent 00b801c550
commit 82eb344558
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class ContactComponent extends Component
$contact = collect($contact->client->contacts->firstWhere('is_primary', 1)->toArray())->merge([
'home_phone' => $contact->client->phone,
'custom_identifier' => $contact->client->client_hash,
'custom_identifier' => $contact->client->number . 'X' . rand(1000, 9999),
'name' => $contact->client->name,
'id' => null,
])->all();

View File

@ -205,8 +205,11 @@ class RotessaPaymentDriver extends BaseDriver
public function findOrCreateCustomer(array $data)
{
nlog($data);
$result = null;
try {
$existing = ClientGatewayToken::query()