#IanGungee

1 messages · Page 1 of 1 (latest)

lean wharfBOT
full ridge
#

Hi 👋

I don't know the stripe-challenge-operator you are referring to. Where are you finding this?

tender zodiac
#

As a part of stripe partner certification, developers are given a branch of a git repo with challenges that need to be completed (https://github.com/stripe-certification). There is a bot (or collection of actions) that automatically test each push, but it seems to be faulty.

#

If you aren't familiar with it, that's ok. I can just ask the original question that sent me down this rabbit hole regarding stripe elements

full ridge
#

Yeah our Discord forum is specific to integrations with Stripe APIs so I can't really help with this.

tender zodiac
#

Word, I sent an email to support@stripe.com, so hopefully they'll get back to me eventually, but my original question was an error that I was getting with stripe.elements()

full ridge
#

Okay can you describe the issue a bit more thoroughly?

tender zodiac
#

I'll do my best, but here's the error to start:

IntegrationError: Invalid value for stripe.confirmPayment(): elements should have a mounted Payment Element or Pay Button Element. It looks like you have other Elements on the page.
#

I have created a paymentIntent on the server, and wish to use Stripe.Elements.Create('card') to confirm that paymentIntent with the relevant data:

#

The "card number" section is the element

full ridge
#

Ah, you're using the Card element then

#

You can't use confirmPayment unless you are using a Payment Element

tender zodiac
#

The error gets thrown when I call stripe.confirmPayment(). This function requests the elements object. confirmPayment seems slightly off from confirmPaymentIntent (which is what I want), but that is only available on the server, and that is the function I found via the docs

full ridge
#

It's got to be confirmCardPayment

tender zodiac
#

Lol is it actually that simple?

#

Well, implementing that returns me a new error, so that's progress. Hopefully the github issue will be resolved separately, but at least I can make progress locally now, thanks!

full ridge
#

What's the new error?