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()
100100 return $ this ->getDeveloperMode () ? $ this ->getDeveloperEndpoint () : $ this ->getLiveEndpoint ();
101101 }
102102
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+
103113 /**
104114 * @return TransactionReference
105115 */
@@ -249,6 +259,15 @@ protected function addTransactionType(\SimpleXMLElement $data)
249259 $ data ->transactionRequest ->transactionType = $ this ->action ;
250260 }
251261
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+
252271 /**
253272 * Adds billing data to a partially filled request data object.
254273 *
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public function getData()
1717 $ data = $ this ->getBaseData ();
1818 $ data ->transactionRequest ->amount = $ this ->getAmount ();
1919 $ this ->addPayment ($ data );
20+ $ this ->addSolutionId ($ data );
2021 $ this ->addBillingData ($ data );
2122 $ this ->addCustomerIP ($ data );
2223 $ this ->addTransactionSettings ($ data );
You can’t perform that action at this time.
0 commit comments