We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b4027 commit 8be2d04Copy full SHA for 8be2d04
src/Message/AuthorizeRequest.php
@@ -37,10 +37,12 @@ public function getData()
37
// special validation
38
if ($this->getPaymentMethodToken()) {
39
$data['paymentMethodToken'] = $this->getPaymentMethodToken();
40
- } elseif($this->getToken()) {
+ } elseif ($this->getToken()) {
41
$data['paymentMethodNonce'] = $this->getToken();
42
+ } elseif ($this->getCustomerId()) {
43
+ $data['customerId'] = $this->getCustomerId();
44
} else {
- throw new InvalidRequestException("The token (payment nonce) or paymentMethodToken field should be set.");
45
+ throw new InvalidRequestException("The token (payment nonce), paymentMethodToken or customerId field should be set.");
46
}
47
48
// Remove null values
0 commit comments