1 <?php
2 namespace OpenDNS\MES\Trident;
3
4 /**
5 * Delete a stored credit card
6 *
7 * If you want to refund an already-processed transaction, use Refund instead.
8 */
9 class DeleteStoredCard extends Request
10 {
11 /** @var string Transaction type to send in the request */
12 protected $transactionType = 'X';
13
14 /**
15 * Set the card ID to delete
16 *
17 * This is a 32-character alphanumeric ID returned from a previous 'Store Card'
18 * call.
19 *
20 * @param int|string $cardId
21 * @return self The current class instance for chaining
22 */
23 public function setCardId($cardId)
24 {
25 return $this->setField('card_id', $cardId);
26 }
27 }
28