#awombmayu_code
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1440697782955675730
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- awo_ece-confirm, 18 hours ago, 29 messages
👋 Hi there, just catching up on your thread from yesterday now
So in relation to our last query on that thread, were you able to share your development website, so that I can take a look what actually happens?
Sorry, I meant a URL that we could visit to try and reproduce the issue
ok one moment ill refresh the version i have online
Hi there 👋 jumping in as my teammate needs to step away soon. I'll be a bit slow as I'm catching up on threads, but I wanted to confirm the integration path you're using. Is this the Express Checkout Element using Payment Intents?
If so, can you share the part of your code that is calling confirmPayment?
i just uploaded the new version to vercel and meet new problems. normally i choose a size, put item to cart and then view cart (where also checkout is). when testing the payment elements would appear there, but after i uploaded they dont appear.
const handleExpressCheckoutConfirm = async ({ paymentMethod, shippingAddress, shippingRate }) => {
console.log('2')
setIsLoading(true);
setMessage(null);
if (!clientSecret) {
setMessage("Error: Client Secret fehlt. Bitte die Warenkorbseite neu laden.");
setIsLoading(false);
return;
}
if (!stripe || !elements) {
setMessage("Error: Stripe/Elements nicht initialisiert.");
setIsLoading(false);
return;
}
if (!paymentMethod || paymentMethod.type !== 'paypal') {
setMessage("Error: PayPal Zahlungsmethode wurde nicht korrekt bereitgestellt.");
setIsLoading(false);
return;
}
const {error} = await stripe.confirmPayment(
clientSecret,
{
return_url: `${window.location.origin}/complete`,
},
console.log('3')
);
if (error) {
setMessage(`Zahlungsfehler nach Bestätigung: ${error.message}`);
} else {
setMessage("Zahlung initiiert. Wenn kein Fenster geöffnet wurde, ist die Weiterleitung blockiert.");
}
setIsLoading(false);
};```
Are we pivoting to the new problem, or still focusing on the current problem of the payment not completing? What debugging have you done for that so far? What errors are you seeing, if any, and where?
i want to focus on the current problem of the express payment redirect. in my vsc console i have this : [0] (node:33139) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead.
[0] (Use node --trace-deprecation ... to show where the warning was created)
[1] Stripe Payment Intent created successfully!
[1] Stripe Payment Intent created successfully!
and on the website console i have this warning twice: stripe.js:1 You may test your Stripe.js integration over HTTP. However, live Stripe.js integrations must use HTTPS.
What insight do you need about these errors? I'm not sure where the first one comes from, but it looks like something is using a deprecated package in your project. Then it looks like Stripe worked as expected a couple times. The last warning seems pretty clear, can you help me understand the confusion there?
my problem is that my express checkout element doesnt work. when i click on it and enter the correct paypal sandbox email and passwort on the paypal website, the paypal website closes (as if it accepted my input), but my site is still 'frozen' with some text that i should complete my payment on the paypal website or choose another service. i do not get redirected to my checkout complete page, and i dont know why
Did your code make it to the point where it tried to run confirmPayment, or did it return sooner than that because one of the checks you have in your if statements was true?
got it thanks