commerceguys /
authnet
| 1 | <?php |
||
| 2 | |||
| 3 | namespace CommerceGuys\AuthNet; |
||
| 4 | |||
| 5 | use GuzzleHttp\Client; |
||
| 6 | use CommerceGuys\AuthNet\Request\RequestInterface; |
||
| 7 | use CommerceGuys\AuthNet\DataTypes\OpaqueData; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Use this method to decrypt the VISA Checkout data. |
||
| 11 | * |
||
| 12 | * @link http://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card |
||
| 13 | */ |
||
| 14 | class DecryptPaymentDataRequest extends BaseApiRequest |
||
| 15 | { |
||
| 16 | protected $opaqueData; |
||
| 17 | protected $refId = ''; |
||
| 18 | protected $callId = ''; |
||
| 19 | |||
| 20 | public function __construct( |
||
| 21 | Configuration $configuration, |
||
| 22 | Client $client, |
||
| 23 | ?OpaqueData $opaqueData = null, |
||
| 24 | $refId, |
||
| 25 | $callId |
||
| 26 | ) { |
||
| 27 | parent::__construct($configuration, $client); |
||
| 28 | $this->opaqueData = $opaqueData; |
||
| 29 | $this->refId = $refId; |
||
| 30 | $this->callId = $callId; |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function attachData(RequestInterface $request) |
||
| 34 | { |
||
| 35 | $request->addDataType($this->opaqueData); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 36 | $request->addData('refId', $this->refId); |
||
| 37 | $request->addData('callId', $this->callId); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |