File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
vendor/omnipay/authorizenet/src/Message Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public function setDeveloperEndpoint($value)
97
97
98
98
public function getEndpoint ()
99
99
{
100
- return $ this ->getDeveloperMode () ? $ this ->getDeveloperEndpoint () : $ this ->getLiveEndpoint ();
100
+ return $ this ->getDeveloperMode () || $ this -> getTestMode () ? $ this ->getDeveloperEndpoint () : $ this ->getLiveEndpoint ();
101
101
}
102
102
103
103
/**
@@ -113,10 +113,13 @@ public function setTransactionReference($value)
113
113
if (substr ($ value , 0 , 1 ) === '{ ' ) {
114
114
// Value is a complex key containing the transaction ID and other properties
115
115
$ transactionRef = new TransactionReference ($ value );
116
+ $ data = json_decode ($ value );
117
+ $ transactionRef = $ data ->transId ;
116
118
} else {
117
119
// Value just contains the transaction ID
118
120
$ transactionRef = new TransactionReference ();
119
121
$ transactionRef ->setTransId ($ value );
122
+ $ transactionRef = $ value ;
120
123
}
121
124
122
125
return $ this ->setParameter ('transactionReference ' , $ transactionRef );
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function getData()
15
15
16
16
$ data = $ this ->getBaseData ();
17
17
$ data ->transactionRequest ->amount = $ this ->getAmount ();
18
- $ data ->transactionRequest ->refTransId = $ this ->getTransactionReference ()-> getTransId () ;
18
+ $ data ->transactionRequest ->refTransId = $ this ->getTransactionReference ();
19
19
$ this ->addTransactionSettings ($ data );
20
20
21
21
return $ data ;
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ public function getTransactionReference($serialize = true)
134
134
}
135
135
} catch (\Exception $ e ) {
136
136
}
137
-
137
+ return ( string ) $ body -> transId ;
138
138
return $ serialize ? (string )$ transactionRef : $ transactionRef ;
139
139
}
140
140
}
You can’t perform that action at this time.
0 commit comments