Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Use correct billing and shipping address variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Sep 25, 2018
1 parent 639c25d commit b5c7fac
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/TransactionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,32 +261,32 @@ public function get_parameters( $merchant_key ) {
'birthdate' => $this->birth_date,

// Billing.
'billing_firstname' => isset( $this->billing['first_name'] ) ? $this->billing['first_name'] : null,
'billing_lastname' => isset( $this->billing['last_name'] ) ? $this->billing['last_name'] : null,
'billing_company' => isset( $this->billing['company'] ) ? $this->billing['company'] : null,
'billing_coc' => isset( $this->billing['company_coc'] ) ? $this->billing['company_coc'] : null,
'billing_address1' => isset( $this->billing['line_1'] ) ? $this->billing['line_1'] : null,
'billing_address2' => isset( $this->billing['line_2'] ) ? $this->billing['line_2'] : null,
'billing_zip' => isset( $this->billing['zip'] ) ? $this->billing['zip'] : null,
'billing_city' => isset( $this->billing['city'] ) ? $this->billing['city'] : null,
'billing_country' => isset( $this->billing['country'] ) ? $this->billing['country'] : null,
'billing_countrycode' => isset( $this->billing['country_code'] ) ? $this->billing['country_code'] : null,
'billing_phone' => isset( $this->billing['phone'] ) ? $this->billing['phone'] : null,
'billing_firstname' => isset( $this->billing_address['first_name'] ) ? $this->billing_address['first_name'] : null,
'billing_lastname' => isset( $this->billing_address['last_name'] ) ? $this->billing_address['last_name'] : null,
'billing_company' => isset( $this->billing_address['company'] ) ? $this->billing_address['company'] : null,
'billing_coc' => isset( $this->billing_address['company_coc'] ) ? $this->billing_address['company_coc'] : null,
'billing_address1' => isset( $this->billing_address['line_1'] ) ? $this->billing_address['line_1'] : null,
'billing_address2' => isset( $this->billing_address['line_2'] ) ? $this->billing_address['line_2'] : null,
'billing_zip' => isset( $this->billing_address['zip'] ) ? $this->billing_address['zip'] : null,
'billing_city' => isset( $this->billing_address['city'] ) ? $this->billing_address['city'] : null,
'billing_country' => isset( $this->billing_address['country'] ) ? $this->billing_address['country'] : null,
'billing_countrycode' => isset( $this->billing_address['country_code'] ) ? $this->billing_address['country_code'] : null,
'billing_phone' => isset( $this->billing_address['phone'] ) ? $this->billing_address['phone'] : null,
'billing_mail' => $this->billing_mail,

// Shipping.
'shipping_firstname' => isset( $this->shipping['first_name'] ) ? $this->shipping['first_name'] : null,
'shipping_lastname' => isset( $this->shipping['last_name'] ) ? $this->shipping['last_name'] : null,
'shipping_company' => isset( $this->shipping['company'] ) ? $this->shipping['company'] : null,
'shipping_coc' => isset( $this->shipping['company_coc'] ) ? $this->shipping['company_coc'] : null,
'shipping_address1' => isset( $this->shipping['line_1'] ) ? $this->shipping['line_1'] : null,
'shipping_address2' => isset( $this->shipping['line_2'] ) ? $this->shipping['line_2'] : null,
'shipping_zip' => isset( $this->shipping['zip'] ) ? $this->shipping['zip'] : null,
'shipping_city' => isset( $this->shipping['city'] ) ? $this->shipping['city'] : null,
'shipping_country' => isset( $this->shipping['country'] ) ? $this->shipping['country'] : null,
'shipping_countrycode' => isset( $this->shipping['country_code'] ) ? $this->shipping['country_code'] : null,
'shipping_phone' => isset( $this->shipping['phone'] ) ? $this->shipping['phone'] : null,
'shipping_mail' => isset( $this->shipping['email'] ) ? $this->shipping['email'] : null,
'shipping_firstname' => isset( $this->shipping_address['first_name'] ) ? $this->shipping_address['first_name'] : null,
'shipping_lastname' => isset( $this->shipping_address['last_name'] ) ? $this->shipping_address['last_name'] : null,
'shipping_company' => isset( $this->shipping_address['company'] ) ? $this->shipping_address['company'] : null,
'shipping_coc' => isset( $this->shipping_address['company_coc'] ) ? $this->shipping_address['company_coc'] : null,
'shipping_address1' => isset( $this->shipping_address['line_1'] ) ? $this->shipping_address['line_1'] : null,
'shipping_address2' => isset( $this->shipping_address['line_2'] ) ? $this->shipping_address['line_2'] : null,
'shipping_zip' => isset( $this->shipping_address['zip'] ) ? $this->shipping_address['zip'] : null,
'shipping_city' => isset( $this->shipping_address['city'] ) ? $this->shipping_address['city'] : null,
'shipping_country' => isset( $this->shipping_address['country'] ) ? $this->shipping_address['country'] : null,
'shipping_countrycode' => isset( $this->shipping_address['country_code'] ) ? $this->shipping_address['country_code'] : null,
'shipping_phone' => isset( $this->shipping_address['phone'] ) ? $this->shipping_address['phone'] : null,
'shipping_mail' => isset( $this->shipping_address['email'] ) ? $this->shipping_address['email'] : null,
);

// Products.
Expand Down

0 comments on commit b5c7fac

Please sign in to comment.