File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/Omnipay/PayPal/Message Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public function getData()
25
25
$ data ['PAYMENTREQUEST_0_PAYMENTACTION ' ] = 'Authorization ' ;
26
26
$ data ['PAYMENTREQUEST_0_AMT ' ] = $ this ->getAmountDecimal ();
27
27
$ data ['PAYMENTREQUEST_0_CURRENCYCODE ' ] = $ this ->getCurrency ();
28
+ $ data ['PAYMENTREQUEST_0_INVNUM ' ] = $ this ->getTransactionId ();
28
29
$ data ['PAYMENTREQUEST_0_DESC ' ] = $ this ->getDescription ();
29
30
30
31
// pp express specific fields
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public function getData()
27
27
$ data ['PAYMENTREQUEST_0_PAYMENTACTION ' ] = $ this ->action ;
28
28
$ data ['PAYMENTREQUEST_0_AMT ' ] = $ this ->getAmountDecimal ();
29
29
$ data ['PAYMENTREQUEST_0_CURRENCYCODE ' ] = $ this ->getCurrency ();
30
+ $ data ['PAYMENTREQUEST_0_INVNUM ' ] = $ this ->getTransactionId ();
30
31
$ data ['PAYMENTREQUEST_0_DESC ' ] = $ this ->getDescription ();
31
32
32
33
$ data ['TOKEN ' ] = $ this ->httpRequest ->query ->get ('token ' );
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ public function getData()
25
25
$ this ->validate ('amount ' , 'card ' );
26
26
$ this ->getCard ()->validate ();
27
27
28
- $ prefix = '' ;
29
- $ data [$ prefix . ' PAYMENTACTION ' ] = $ this ->action ;
30
- $ data [$ prefix . ' AMT ' ] = $ this ->getAmountDecimal ();
31
- $ data [$ prefix . ' CURRENCYCODE ' ] = $ this ->getCurrency ();
32
- $ data [$ prefix . 'DESC ' ] = $ this ->getDescription ();
28
+ $ data [ ' PAYMENTACTION ' ] = $ this -> action ;
29
+ $ data [' AMT ' ] = $ this ->getAmountDecimal () ;
30
+ $ data [' CURRENCYCODE ' ] = $ this ->getCurrency ();
31
+ $ data [' INVNUM ' ] = $ this ->getTransactionId ();
32
+ $ data ['DESC ' ] = $ this ->getDescription ();
33
33
34
34
// add credit card details
35
35
$ data ['ACCT ' ] = $ this ->getCard ()->getNumber ();
You can’t perform that action at this time.
0 commit comments