Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • OpenDNS
    • MES
      • Recurring
      • Reporting
      • Trident

Classes

  • Capture
  • CardTransaction
  • Credit
  • DeleteStoredCard
  • PreAuthorization
  • ReAuthorization
  • Refund
  • Request
  • Sale
  • StoreCard
  • Verification
  • Void
 1 <?php
 2 namespace OpenDNS\MES\Trident;
 3 
 4 /**
 5  * Pre-Authorize a transaction.
 6  *
 7  * Confirms that funds are available and reserves them for a short time. Must
 8  * be captured if you want to keep the money.
 9  */
10 class PreAuthorization extends CardTransaction
11 {
12     /** @var string Transaction type to send in the request */
13     protected $transactionType = 'P';
14 
15     /**
16      * Sets the flag to store this card number for future use.
17      *
18      * If true, the card will be stored and a card_id will be returned. If false,
19      * it won't.
20      *
21      * @param bool $enable
22      * @return self The current class instance for chaining
23      */
24     public function setStoreCard($enable)
25     {
26         $this->setField('store_card', $enable ? 'y' : 'n');
27     }
28 }
29 
API documentation generated by ApiGen