Skip to content

Commit 46a46df

Browse files
authored
Update AuthorizeRequest.php
Fix inversed so that SendEMail and VendorEMail data is passed to Sage Pay (NB this is case sensitive) rather than being filtered out by $validFields
1 parent b37780f commit 46a46df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Message/Form/AuthorizeRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AuthorizeRequest extends DirectAuthorizeRequest
2626
'CustomerName' => false,
2727
'CustomerEMail' => false,
2828
'VendorEMail' => false,
29-
'SendEmail' => false,
29+
'SendEMail' => false,
3030
'EmailMessage' => false,
3131
'BillingSurname' => true,
3232
'BillingFirstnames' => true,
@@ -100,7 +100,7 @@ public function getCryptData()
100100
}
101101

102102
if ($this->getVendorEmail() !== null) {
103-
$data['VendorEmail'] = $this->getVendorEmail();
103+
$data['VendorEMail'] = $this->getVendorEmail();
104104
}
105105

106106
if ($this->getEmailMessage() !== null) {
@@ -124,7 +124,7 @@ public function getCryptData()
124124
$sendEmail = static::SEND_EMAIL_BOTH;
125125
}
126126

127-
$data['SendEmail'] = $this->getSendEmail();
127+
$data['SendEMail'] = $this->getSendEmail();
128128
}
129129

130130
$data['SuccessURL'] = $this->getReturnUrl();

0 commit comments

Comments
 (0)