Skip to content

Commit 1fe974b

Browse files
committed
Merge pull request #10 from mintbridge/patch-1
allow for different people in billing and shipping names
2 parents 185368d + 9f4ad08 commit 1fe974b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Message/DirectAuthorizeRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ protected function getBaseAuthorizeData()
2828
$data['Apply3DSecure'] = $this->getApply3DSecure() ?: 0;
2929

3030
// billing details
31-
$data['BillingFirstnames'] = $card->getFirstName();
32-
$data['BillingSurname'] = $card->getLastName();
31+
$data['BillingFirstnames'] = $card->getBillingFirstName();
32+
$data['BillingSurname'] = $card->getBillingLastName();
3333
$data['BillingAddress1'] = $card->getBillingAddress1();
3434
$data['BillingAddress2'] = $card->getBillingAddress2();
3535
$data['BillingCity'] = $card->getBillingCity();
@@ -39,8 +39,8 @@ protected function getBaseAuthorizeData()
3939
$data['BillingPhone'] = $card->getBillingPhone();
4040

4141
// shipping details
42-
$data['DeliveryFirstnames'] = $card->getFirstName();
43-
$data['DeliverySurname'] = $card->getLastName();
42+
$data['DeliveryFirstnames'] = $card->getShippingFirstName();
43+
$data['DeliverySurname'] = $card->getShippingLastName();
4444
$data['DeliveryAddress1'] = $card->getShippingAddress1();
4545
$data['DeliveryAddress2'] = $card->getShippingAddress2();
4646
$data['DeliveryCity'] = $card->getShippingCity();

0 commit comments

Comments
 (0)