/**
  * Get the required data for the API request.
  *
  * @return array
  * @throws \Omnipay\Common\Exception\InvalidRequestException
  */
 public function getData()
 {
     parent::getData();
     $this->validate('paymentMethod');
     $paymentMethod = $this->getPaymentMethod();
     return compact('paymentMethod');
 }
 /**
  * Get the required data which is needed
  * to execute the API request.
  *
  * @return array
  * @throws \Omnipay\Common\Exception\InvalidRequestException
  */
 public function getData()
 {
     parent::getData();
     $this->validate('transactionId');
     $transactionId = $this->getTransactionId();
     return compact('transactionId');
 }
 /**
  * Get the raw data array for this message. The format of this varies from gateway to
  * gateway, but will usually be either an associative array, or a SimpleXMLElement.
  *
  * @return array
  * @throws \Omnipay\Common\Exception\InvalidRequestException
  */
 public function getData()
 {
     parent::getData();
     $this->validate('amount', 'currency', 'description', 'transactionId', 'type');
     // Direct order.
     if ($this->getType() === 'direct') {
         $this->validate('gateway');
     }
     // When the gateway is set to IDEAL,
     // the issuer parameter is required.
     if ($this->getType() == 'direct' && $this->getGateway() == 'IDEAL') {
         $this->validate('issuer');
     }
     $data = array('amount' => $this->getAmountInteger(), 'currency' => $this->getCurrency(), 'days_active' => $this->getDaysActive(), 'description' => $this->getDescription(), 'gateway' => $this->getGateway(), 'google_analytics' => $this->getGoogleAnalyticsCode(), 'items' => $this->getItems(), 'manual' => $this->getManual(), 'order_id' => $this->getTransactionId(), 'recurring_id' => $this->getRecurringId(), 'type' => $this->getType(), 'var1' => $this->getVar1(), 'var2' => $this->getVar2(), 'var3' => $this->getVar3());
     $paymentData = $this->getPaymentData();
     if (!empty($paymentData)) {
         $data['payment_options'] = $paymentData;
     }
     $customerData = $this->getCustomerData();
     if (!empty($customerData)) {
         $data['customer'] = $customerData;
     }
     $gatewayData = $this->getGatewayData();
     if (!empty($gatewayData)) {
         $data['gateway_info'] = $gatewayData;
     }
     return array_filter($data);
 }
 /**
  * Get the required data for the API request.
  *
  * @return array
  * @throws \Omnipay\Common\Exception\InvalidRequestException
  */
 public function getData()
 {
     parent::getData();
     $this->validate('amount', 'currency', 'description', 'transactionId');
     return array('amount' => $this->getAmountInteger(), 'currency' => $this->getCurrency(), 'description' => $this->getDescription(), 'id' => $this->getTransactionId(), 'type' => 'refund');
 }
 /**
  * Get the required data for the API request.
  *
  * @return array
  */
 public function getData()
 {
     parent::getData();
     $data = array('amount' => $this->getAmountInteger(), 'country' => $this->getCountry(), 'currency' => $this->getCurrency());
     return array_filter($data);
 }