Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function getData()
 {
     $data = array();
     $data['flow'] = $this->flow;
     $data['subscription'] = $this->subscription->toArray();
     if (false === empty($this->customer)) {
         $data['customer'] = $this->customer->toArray();
     }
     if (false === empty($this->paymentMethod)) {
         $data['method'] = $this->paymentMethod;
     }
     if (false == empty($this->threatMetrixSessionId)) {
         $data['threatmetrix_session_id'] = $this->threatMetrixSessionId;
     }
     if (false === empty($this->creditcard)) {
         $data['creditcard'] = $this->creditcard->toArray();
     }
     if (false === empty($this->useSubscription)) {
         $data['use_subscription'] = $this->useSubscription;
     }
     if (false === empty($this->useBillingAgreement)) {
         $data['use_billing_agreement'] = $this->useBillingAgreement;
     }
     return $data;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function getData()
 {
     $data = array();
     $data['flow'] = $this->flow;
     if (false === empty($this->billingAgreement)) {
         $data['billing_agreement'] = $this->billingAgreement ? 1 : 0;
     }
     if (false === empty($this->mode)) {
         $data['mode'] = $this->mode;
     }
     if (false == empty($this->threatMetrixSessionId)) {
         $data['threatmetrix_session_id'] = $this->threatMetrixSessionId;
     }
     if (false === empty($this->paymentMethod)) {
         $data['method'] = $this->paymentMethod;
     }
     if (false === empty($this->website)) {
         $data['website'] = $this->website;
     }
     if (false === empty($this->agent)) {
         $data['agent'] = $this->agent;
     }
     if (false === empty($this->redirectUrl)) {
         $data['redirect_url'] = $this->redirectUrl;
     }
     if (false === empty($this->emsUrl)) {
         $data['ems_url'] = $this->emsUrl;
     }
     if (false === empty($this->creditcard)) {
         $data['creditcard'] = $this->creditcard->toArray();
     }
     if (false === empty($this->customer)) {
         $data['customer'] = (array) $this->customer->toArray();
     }
     if (false === empty($this->bankCode)) {
         $data['bank_code'] = $this->bankCode;
     }
     if (false === empty($this->reference)) {
         $data['reference'] = $this->reference;
     }
     if (false === empty($this->currency)) {
         $data['currency'] = $this->currency;
     }
     if (false === empty($this->description)) {
         $data['description'] = $this->description;
     }
     if (false === empty($this->allowedRetries)) {
         $data['allowed_retries'] = $this->allowedRetries;
     }
     if (false === empty($this->extra)) {
         $data['extra'] = $this->extra;
     }
     return $data;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 public function getData()
 {
     $data = array();
     $data['flow'] = $this->flow;
     if (false === empty($this->billingAgreement)) {
         $data['billing_agreement'] = $this->billingAgreement ? 1 : 0;
     }
     if (false === empty($this->mode)) {
         $data['mode'] = $this->mode;
     }
     if (false == empty($this->threatMetrixSessionId)) {
         $data['threatmetrix_session_id'] = $this->threatMetrixSessionId;
     }
     if (false === empty($this->paymentMethod)) {
         $data['method'] = $this->paymentMethod;
     }
     if (false === empty($this->website)) {
         $data['website'] = $this->website;
     }
     if (false === empty($this->agent)) {
         $data['agent'] = $this->agent;
     }
     if (false === empty($this->redirectUrl)) {
         $data['redirect_url'] = $this->redirectUrl;
     }
     if (false === empty($this->emsUrl)) {
         $data['ems_url'] = $this->emsUrl;
     }
     if (false === empty($this->creditcard)) {
         $data['creditcard'] = $this->creditcard->toArray();
     }
     if (false === empty($this->customer)) {
         $data['customer'] = (array) $this->customer->toArray();
     }
     if (false === empty($this->payment)) {
         $data['payment'] = (array) $this->payment->toArray();
     }
     return $data;
 }