Skip to content

Commit 6d93f01

Browse files
authored
Added parameter to createPaymentRequest
1 parent b87bc75 commit 6d93f01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Client/PaymentRequest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public function createPaymentRequest(
2121
?string $orderId = null,
2222
?bool $createToken = false,
2323
?string $customerId = null,
24-
?bool $cardAuthorizeOnly = false
24+
?bool $cardAuthorizeOnly = false.
25+
bool $showBillingAddressSameAsShippingAddressCheckbox = false
2526
): array {
2627
$url = $this->getApiUrl() . 'paymentrequests';
2728
$headers = $this->getRequestHeaders();
@@ -37,7 +38,8 @@ public function createPaymentRequest(
3738
'CardCreateToken' => $createToken && $customerEmailAddress != "" ? 'true' : 'false',
3839
'CustomerID' => $customerId ?? '',
3940
'CardAuthorizeOnly' => $cardAuthorizeOnly ? 'true' : 'false',
40-
'CustomerEmailAddress' => $customerEmailAddress
41+
'CustomerEmailAddress' => $customerEmailAddress,
42+
'IgnoreAddressVerification' => $showBillingAddressSameAsShippingAddressCheckbox ? 'true' : 'false'
4143
]);
4244

4345
$response = $this->getHttpClient()->request($method, $url, $headers, $body);

0 commit comments

Comments
 (0)