Skip to content

Commit

Permalink
feat: add third_party_payment_token field to Transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
garthbrantley committed Dec 6, 2023
1 parent a70ffcd commit 7ad3734
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/SubscribePro/Service/Transaction/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,24 @@ public function setPaymentToken($paymentToken)
return $this->setData(self::PAYMENT_TOKEN, $paymentToken);
}

/**
* @return string|null
*/
public function getThirdPartyPaymentToken()
{
return $this->getData(self::THIRD_PARTY_PAYMENT_TOKEN);
}

/**
* @param string $paymentToken
*
* @return $this
*/
public function setThirdPartyPaymentToken($paymentToken)
{
return $this->setData(self::THIRD_PARTY_PAYMENT_TOKEN, $paymentToken);
}

/**
* @return string|null
*/
Expand Down
13 changes: 13 additions & 0 deletions src/SubscribePro/Service/Transaction/TransactionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ interface TransactionInterface extends DataInterface
public const REF_GATEWAY_ID = 'ref_gateway_id';
public const REF_TOKEN = 'ref_token';
public const PAYMENT_TOKEN = 'payment_token';
public const THIRD_PARTY_PAYMENT_TOKEN = 'third_party_payment_token';
public const TOKEN = 'token';
public const TYPE = 'type';
public const AMOUNT = 'amount';
Expand Down Expand Up @@ -286,6 +287,18 @@ public function getPaymentToken();
*/
public function setPaymentToken($paymentToken);

/**
* @return string|null
*/
public function getThirdPartyPaymentToken();

/**
* @param string $paymentToken
*
* @return $this
*/
public function setThirdPartyPaymentToken($paymentToken);

/**
* @return string|null
*/
Expand Down

0 comments on commit 7ad3734

Please sign in to comment.