#antoineb_api

1 messages ยท Page 1 of 1 (latest)

ancient flickerBOT
#

๐Ÿ‘‹ 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/1430599119138979982

๐Ÿ“ 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.

jaunty root
#

Let me take a look.

tiny moon
#

thanks!

jaunty root
#

Looking at req_y9JMK6e3KL1iBC, mandate_data is provided. However, it's not provided for req_P4gNv3yfZFrYLH which is why the error is being returned.

tiny moon
#

but is it something that is provided by the stripe SDK or should we manually provide it?

jaunty root
#

Looking into it.

ancient flickerBOT
tiny moon
#

hello synthrider ๐Ÿ™‚

summer island
#

hey there, just stepping in to take over for my teammate who needs to step away

tiny moon
#

ok!

#

I was also researching and it seems we didn't have to provide that parameter in the first request, is was provided by stripeJS (mandate_data).
In the second request, it seems stripe sdk just stopped sending it. Is this a bug?

summer island
#

Trying to figure this out.

#

Can you please share your Elements/Stripe.js initialization code snippets? And also the confirmation code?

tiny moon
#

sorry, I don't have access to it right now, I'd have to ask a front dev to do it

#

can I send it tomorrow?

summer island
#

From what I can see, it lookings like you're calling confirmPaypalPayment() (ref) rather than confirmPayment using payment element or Express Checkout Element. Is that right?

tiny moon
#

indeed

summer island
tiny moon
#

ok thank you.

I found the code that trigger the confirmation:

onSuccess: async (result: CreatePaymentIntentMutationResult) => {
const { client_secret: clientSecret } = result;
stripeRequest(
() =>
stripe.confirmPayPalPayment(clientSecret, {
return_url: returnUrl,
payment_method: payPalData?.payPalPaymentMethodId ? payPalData.payPalPaymentMethodId : {},
}),
({ paymentIntent, error }) => {
captureEvent({
message: 'PayPal Tracking: Promise of payment intent',
level: 'info',
extra: { hasPaymentIntent: !!paymentIntent, error },
});
setPaymentInfos({
stripePaymentMethodId: getPaymentMethodId(paymentIntent),
stripePaymentIntentId: paymentIntent?.id,
preauthorizationSkipped: !!potentialValidation.skipPreauthorization,
});
createPotential({
hasMembership,
config,
shouldSendPrices: !isCleaning,
});
},

#

so yes, I don't use PaymentElement (not yet, but we're migrating)

#

is it something linked to the fact that we don't use payment element you think?

summer island
#

Possibly, though it does not appear that you were using it before (for the example success) either

#

Is this intermittent, or always failing for you?

#

And do you have a sense of when the errors started?

tiny moon
#

it started the 8th of october

#

yeah, we never used PaymentElement, so it does not explain wwhy it started failing

#

it is now always failing. it started the 8th of october

summer island
#

Ok thanks, looking into this more

summer island
#

(still looking at this, digging into some logs)

tiny moon
#

okay, thanks

ancient flickerBOT
ancient flickerBOT
summer island
#

Hey just a quick update that we do think something went wrong here around that time and we're investigating.

#

You may receive some outreach from Stripe about this and it could take some time to resolve

#

But thank you for raising this!

tiny moon
#

thanks a lot for your time and involvment!!! ๐Ÿ™‚

ancient flickerBOT
summer island
#

I see you're offline now, but if you don't receive information about this please use the link I will have our bot send you to open a case for us to respond via email as we work through this.