Skip to content

Commit

Permalink
feat: Add Payment token field.
Browse files Browse the repository at this point in the history
Refs: #250
  • Loading branch information
eugene-shab committed Dec 6, 2023
1 parent f1b25c3 commit a70ffcd
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 @@ -401,6 +401,24 @@ public function getRefToken()
return $this->getData(self::REF_TOKEN);
}

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

/**
* @param string $paymentToken
*
* @return $this
*/
public function setPaymentToken($paymentToken)
{
return $this->setData(self::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 @@ -32,6 +32,7 @@ interface TransactionInterface extends DataInterface
public const REF_TRANSACTION_ID = 'ref_transaction_id';
public const REF_GATEWAY_ID = 'ref_gateway_id';
public const REF_TOKEN = 'ref_token';
public const PAYMENT_TOKEN = 'payment_token';
public const TOKEN = 'token';
public const TYPE = 'type';
public const AMOUNT = 'amount';
Expand Down Expand Up @@ -273,6 +274,18 @@ public function getRefGatewayId();
*/
public function getRefToken();

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

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

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

0 comments on commit a70ffcd

Please sign in to comment.