Skip to content

Commit

Permalink
fix issue with cc_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Jul 22, 2020
1 parent 6596e65 commit 57b733f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public function resolve(
$this->parameters->fromString(urldecode($paypalPayload));
$data = $this->parameters->toArray();
try {
$do = $this->dataObjectFactory->create(['data' => array_change_key_case($data, CASE_LOWER)]);
$this->responseValidator->validate($do, $this->transparent);
$this->transaction->savePaymentInQuote($do, $cart->getId());
$response = $this->transaction->getResponseObject($data);
$this->responseValidator->validate($response, $this->transparent);
$this->transaction->savePaymentInQuote($response, $cart->getId());
} catch (LocalizedException $exception) {
$parameters['error'] = true;
$parameters['error_msg'] = $exception->getMessage();
Expand Down

0 comments on commit 57b733f

Please sign in to comment.