File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Omnipay/NetBanx/Message Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class AuthorizeRequest extends AbstractRequest
35
35
*/
36
36
public function getData ()
37
37
{
38
- if ($ this ->getTransactionReference ()) {
38
+ if ($ this ->getTransactionReference () || $ this -> getCardReference () ) {
39
39
$ this ->txnMode = $ this ->getStoredDataMode ();
40
40
$ this ->validate ('amount ' );
41
41
} else {
@@ -57,7 +57,7 @@ public function getData()
57
57
*/
58
58
protected function getXmlString ()
59
59
{
60
- if ($ this ->getTransactionReference ()) {
60
+ if ($ this ->getTransactionReference () || $ this -> getCardReference () ) {
61
61
$ xmlRoot = 'ccStoredDataRequestV1 ' ;
62
62
} else {
63
63
$ xmlRoot = 'ccAuthRequestV1 ' ;
@@ -79,8 +79,8 @@ protected function getXmlString()
79
79
80
80
$ sxml ->addChild ('merchantRefNum ' , $ this ->getCustomerId () ?: 'ref-num - ' . time ());
81
81
82
- if ($ this ->getTransactionReference ()) {
83
- $ sxml ->addChild ('confirmationNumber ' , $ this ->getTransactionReference ());
82
+ if ($ this ->getTransactionReference () || $ this -> getCardReference () ) {
83
+ $ sxml ->addChild ('confirmationNumber ' , $ this ->getTransactionReference () ?: $ this -> getCardReference () );
84
84
$ sxml ->addChild ('amount ' , $ this ->getAmountDecimal ());
85
85
} else {
86
86
/** @var $card CreditCard */
You can’t perform that action at this time.
0 commit comments