Square SCA

This commit is contained in:
David Bomba 2021-10-03 15:44:23 +11:00
parent 4b5d298b2d
commit aee743f725

View File

@ -135,7 +135,7 @@ class CreditCard
{ {
$client = new \stdClass; $client = new \stdClass;
$client->addressLines = [ $this->square_driver->client->address1, $this->square_driver->client->address2 ]; $client->addressLines = [ $this->square_driver->client->address1 ?: '', $this->square_driver->client->address2 ?: ''];
$client->givenName = $this->square_driver->client->present()->first_name(); $client->givenName = $this->square_driver->client->present()->first_name();
$client->familyName = $this->square_driver->client->present()->last_name(); $client->familyName = $this->square_driver->client->present()->last_name();
$client->email = $this->square_driver->client->present()->email; $client->email = $this->square_driver->client->present()->email;