Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 0939ec2

Browse files
committed
Changes required in order to make T7630 working
1 parent 81df1bd commit 0939ec2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/DatingVIP/Payment/PayOn/TransactionParams.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

src/DatingVIP/Payment/PayOn/XmlApi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)