#Ppp-checkout-redirect
1 messages ยท Page 1 of 1 (latest)
hi
<div class="ui-component ui-radio">
<input type="radio" name="processor[]" value="stripe"><span class="ui-fake-radio"></span>
<div class="ui-label">Stripe</div>
</div>
the developer is saying, all should work, but I believe not, as there some parts are missing
You can see the url field is set and returned in your API call: https://dashboard.stripe.com/test/logs/req_ZYr1ceOVCSfe2x
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So something weird is going on with your redirect
something is incorrect, and not me, neither developer, we cannot figure out what exactly
How are you redirecting? In theory you can just do window.location.replace(session.url)
Can you share the code that handles the redirect
Well, you can't do that in PHP (it uses the Window object from the browser)
I assumed you were redirecting from the client-side
hm
but I'm not redirecting
'success_url' => $this->store->full_url . '?page=success',
'cancel_url' => $this->store->full_url . '?page=cart&return_type=cancel',
]);
} catch (\Exception $exception) {
if(DEBUG) {
$_SESSION['error'][] = $exception->getCode() . ' - ' . $exception->getMessage();
}
$_SESSION['error'][] = $this->language->global->error_message->basic;
header('Location: ' . $this->store->full_url . '?page=cart&return_type=cancel'); die();
}
header('Location: ' . $stripe_session->id); die();
}
header('Location: ' . $stripe_session->id); die(); is the redirect
Well id is the wrong field for starters, so I guess that's the issue
header('Location: ' . $stripe_session->url); die();
It should be, you can see it's returned from the API call I shared
๐
np!