#Aly Salem

1 messages ยท Page 1 of 1 (latest)

tall heathBOT
harsh warren
#

Hi there!

#

Can you share the Checkout Session ID or URL?

tranquil maple
harsh warren
#

Can you create a new Checkout Session with this issue?

#

And also can you explain how you are doing the redirect between your website and the Checkout Session?

tranquil maple
#

unfortunately, I don't have a clear steps to regenerate the issue either that it occurs with first time users. Regarding the redirection , I used the stripe.js file in my angular application then I invoked the redirectToCheckout function using the generated sessionId received from the API

tall heathBOT
tulip jewel
#

Hello ๐Ÿ‘‹
Stepping in here, redirectToCheckout function has been deprecated.
Can you try setting the Checkout URL as window.location.href instead ?

tranquil maple
# tulip jewel Hello ๐Ÿ‘‹ Stepping in here, `redirectToCheckout` function has been deprecated. ...

protected payOnline(): Observable<any> {
if (this.paymentInfo.paymentGateway === PaymentGateway.stripe) {
console.log('this.cartPackages', this.cartPackages);

return this.paymentMethodsService
.payOnlineStripe({
paymentMethod: PaymentMethod.Online,
paymentGateway: PaymentGateway.stripe,
gatewayTransactionId: null,
attachmentId: null,
collectionDate: null,
collectionContactPhone: null,
items: this.paymobAndStripeItems(),
})
.pipe(
tap((res) => {
window.location.href = res.sessionUrl;
})
);
}
}

#

here is my first code that introduced the issue.

#

thanks to advice me with the incorrectness in the previous code

tulip jewel
#

Did that fix the issue?

tranquil maple
tulip jewel
#

What error are you seeing now?

tranquil maple
#

Could you please check these screen shots that I just captured few minutes ago.

tulip jewel
tranquil maple
tranquil maple
#

yes, that's true however the issue takes place for users who tries to pay with stripe for the first time. and if the user tried to refresh the page every thing will work fine

tall heathBOT
surreal gust
#

Hey we are still looking in to this. Do you know if this is something that happens for all of your users the first time they get to your page or just some?

#

Also if you reload your page without a cache and try this again, does it consistently give you this error?

tranquil maple
#

currently we are in the testing phase, so on about 80% of the PCs the issue occurs, however on mobile devices and on other PCs the issue doesn't occur which introduces a new thought that this issue may occur only on the PCs within our organization

surreal gust
#

Thanks for the info. Still trying to think on what this might be or how to look further

tall heathBOT
fringe nexus
#

๐Ÿ‘‹ hows this going @tranquil maple ?