Skip to content

Commit

Permalink
Remove capture encrypted transaction method from the transaction class.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-pay committed Dec 21, 2020
1 parent 3909e57 commit b90e1cf
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,37 +663,4 @@ public static function QRPayment($options = array())

return new Result\QRPayment($result);
}

/**
* Attempt to capture an encrypted transaction.
*
* @param string $transactionId
* @param string $payload
*
* @return Result\Details
* @throws Error\Api
* @throws Error\Error
* @throws Error\Required\ApiToken
*/
public static function captureWithEncryptedData(
$transactionId,
$payload
)
{
$api = new Api\EncryptedTransaction();
$api->setTransactionId($transactionId);
$api->setPayload($payload);

try {
return $api->doRequest();
} catch (\Exception $e) {
return array(
'type' => 'error',
'message' => $e->getMessage(),
'file' => $e->getFile(),
'line' => $e->getLine(),
'trace' => $e->getTraceAsString()
);
}
}
}

0 comments on commit b90e1cf

Please sign in to comment.