Skip to content

Commit

Permalink
Merge pull request #114 from paytrail/fix_card_form
Browse files Browse the repository at this point in the history
Fix card form
  • Loading branch information
loueranta-paytrail authored Oct 5, 2023
2 parents e4e0401 + e5b626e commit 64c63b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ public function add_card_form( $context = Plugin::ADD_CARD_CONTEXT_CHECKOUT) {
// @var \GuzzleHttp\Psr7\Response $response
$response = $this->client->createAddCardFormRequest($add_card_form_request);

if ($location == $response->getHeader('Location')) {
wp_redirect($location[0]);
if ($response->getHeader('Location')) {
wp_redirect($response->getHeader('Location')[0]);
exit;
}
}
Expand Down

0 comments on commit 64c63b2

Please sign in to comment.