#testing_api

1 messages ¡ Page 1 of 1 (latest)

gilded valleyBOT
true juncoBOT
#

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.

gilded valleyBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257272142483947551

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

ancient gazelle
#

hi! is this on the web or in a native app? what does your code look like? is your domain registered? does it happen on only one devie or on all you've tested on? do you have a link to the page with the problem?

fast lava
#

its a webapp, yes the domain is registered. it happen on all devices.

ancient gazelle
#

what does your code look like? do you have a link to the page with the problem?

fast lava
#

const options = {
mode: 'setup',
currency: 'eur',
// Fully customizable with appearance API.
appearance: {/.../},
};
var elements = stripe.elements(options);

const {error: submitError} = elements.submit();
if (submitError) {
handleError(submitError);
return;
}else{
e.preventDefault();
stripe.confirmSetup(
{elements,
clientSecret,
confirmParams: {
return_url: window.location.href,
},
}).then(function(result) {
if (result.error) {
//console.log('error***88')
//console.log(result.error)
showError(result.error.message)
}

var showError = function(errorMsgText) {
toastr.error(errorMsgText);
};

fast lava
ancient gazelle
#

no worries, but without that I can't really debug much

#

your code seems wrong though

#

shouldn't it be const {error: submitError} = await elements.submit(); , with the await?