This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/DatingVIP/Payment/PayOn Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class TransactionParams
2020 private $ referenceId = '' ; // for subsequent transactions
2121 private $ shopperId = '' ; // defined by merchant
2222 private $ invoiceId = '' ; // defined by merchant
23+ private $ orderId = '' ; // order id - optional
2324
2425 // payment
2526
@@ -584,6 +585,16 @@ public function getShopperId()
584585 return $ this ->shopperId ;
585586 }
586587
588+ public function setOrderId ($ orderId )
589+ {
590+ $ this ->orderId = $ orderId ;
591+ }
592+
593+ public function getOrderId ()
594+ {
595+ return $ this ->orderId ;
596+ }
597+
587598 public function setTransactionId ($ transactionId )
588599 {
589600 $ this ->transactionId = $ transactionId ;
Original file line number Diff line number Diff line change @@ -714,6 +714,7 @@ private function addTransactionXml(SimpleXMLElement &$root)
714714 self ::addChildIfNotEmpty ( $ id , 'ReferenceID ' , $ this ->transactionParams ->getReferenceId () );
715715 self ::addChildIfNotEmpty ( $ id , 'ShopperID ' , $ this ->transactionParams ->getShopperId ());
716716 self ::addChildIfNotEmpty ( $ id , 'InvoiceID ' , $ this ->transactionParams ->getInvoiceId () );
717+ self ::addChildIfNotEmpty ( $ id , 'OrderID ' , $ this ->transactionParams ->getOrderId () );
717718
718719 if ( $ id ->count ()==0 ) { unset($ transaction ->Identification ); }
719720
You can’t perform that action at this time.
0 commit comments