Skip to content

Commit e73db34

Browse files
authored
Merge pull request #28 from BitBagCommerce/bugfix/customer-payload
[UC-25] Update CustomerPayloadBuilder
2 parents 8091cd4 + 5028d04 commit e73db34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Builder/Payload/CustomerPayloadBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function build(string $email, ?CustomerInterface $customer = null, ?Addre
2525
$payload = [
2626
'custom_id' => strtolower($customer?->getEmail() ?? $email),
2727
'email' => strtolower($customer?->getEmail() ?? $email),
28-
'firstName' => $customer?->getFirstName(),
29-
'lastName' => $customer?->getLastName(),
28+
'first_name' => $customer?->getFirstName(),
29+
'last_name' => $customer?->getLastName(),
3030
'phone_number' => $customer?->getPhoneNumber(),
3131
'country' => $address?->getCountryCode(),
3232
'region' => $address?->getProvinceCode(),

0 commit comments

Comments
 (0)