1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 
<?php
/**
 * Viva Payments Native Authorize Request
 */
namespace Omnipay\VivaPayments\Message;
use Omnipay\Common\Message\ResponseInterface;
/**
 * Viva Payments Native (REST) Authorize Request
 *
 * This is similar to a purchase request.  See the documentation in NativePurchaseRequest.
 *
 * Note that there is no capture() transaction.  Pre-authorized amounts stay on hold until
 * they are cancelled or time out (up to 30 days).
 *
 * @see Omnipay\VivaPayments\RestGateway
 * @link https://github.com/VivaPayments/API/wiki
 * @link https://www.vivawallet.com/en-us/company
 * @link https://github.com/VivaPayments/API/wiki/Native-Checkout
 */
class NativeAuthorizeRequest extends NativePurchaseRequest
{
    public function getData()
    {
        $data = array(
            'isPreAuth'   => true,
        );
        return array_merge($data, parent::getData());
    }
}