Skip to content

Commit

Permalink
MPGS-617: [Simplify] [Prestashop] issue with 3DS and Live cards
Browse files Browse the repository at this point in the history
  • Loading branch information
riversy committed Dec 28, 2021
1 parent 97f865b commit aa54756
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions simplifycommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,6 @@ public function processPayment()
'token' => $token, // Token returned by Simplify Card Tokenization
'description' => $description,
'currency' => $currency_order->iso_code,
'card' => $this->getCardBillingInformation(),
);
}

Expand Down Expand Up @@ -1185,25 +1184,4 @@ public function getContent()

return $html;
}

/**
* @return array
*
* @throws PrestaShopDatabaseException
* @throws PrestaShopException
*/
private function getCardBillingInformation()
{
$cardholder_details = $this->getCardholderDetails();
$country_iso = Country::getIsoById($cardholder_details->id_country);

return array(
'addressCity' => $this->safe($cardholder_details->city),
'addressCountry' => $country_iso,
'addressLine1' => $this->safe($cardholder_details->address1),
'addressLine2' => $this->safe($cardholder_details->address2),
'addressState' => isset($cardholder_details->state) ? $this->safe($cardholder_details->state) : '',
'addressZip' => $this->safe($cardholder_details->postcode),
);
}
}

0 comments on commit aa54756

Please sign in to comment.