1 <?php
2 namespace OpenDNS\MES\Trident;
3
4 /**
5 * Void a previous preauthorization transaction.
6 *
7 * If you want to void a Sale or Capture, use Refund instead.
8 */
9 class Void extends Request
10 {
11 /** @var string Transaction type to send in the request */
12 protected $transactionType = 'V';
13
14 /**
15 * Set the transaction ID of a previous preauthorization transaction.
16 *
17 * @param string $transactionID
18 * @return self The current class instance for chaining
19 */
20 public function setTransactionId($transactionId)
21 {
22 return $this->setField('transaction_id', $transactionId);
23 }
24 }
25