File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,16 @@ public function getEndpoint()
100
100
return $ this ->getDeveloperMode () ? $ this ->getDeveloperEndpoint () : $ this ->getLiveEndpoint ();
101
101
}
102
102
103
+ public function getSolutionId ()
104
+ {
105
+ return $ this ->getParameter ('solutionId ' );
106
+ }
107
+
108
+ public function setSolutionId ($ value )
109
+ {
110
+ return $ this ->setParameter ('solutionId ' , $ value );
111
+ }
112
+
103
113
/**
104
114
* @return TransactionReference
105
115
*/
@@ -249,6 +259,15 @@ protected function addTransactionType(\SimpleXMLElement $data)
249
259
$ data ->transactionRequest ->transactionType = $ this ->action ;
250
260
}
251
261
262
+ protected function addSolutionId (\SimpleXMLElement $ data )
263
+ {
264
+ $ solutionId = $ this ->getSolutionId ();
265
+
266
+ if (!empty ($ solutionId )) {
267
+ $ data ->transactionRequest ->solution ->id = $ solutionId ;
268
+ }
269
+ }
270
+
252
271
/**
253
272
* Adds billing data to a partially filled request data object.
254
273
*
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public function getData()
17
17
$ data = $ this ->getBaseData ();
18
18
$ data ->transactionRequest ->amount = $ this ->getAmount ();
19
19
$ this ->addPayment ($ data );
20
+ $ this ->addSolutionId ($ data );
20
21
$ this ->addBillingData ($ data );
21
22
$ this ->addCustomerIP ($ data );
22
23
$ this ->addTransactionSettings ($ data );
You can’t perform that action at this time.
0 commit comments