#falconstakepool

1 messages · Page 1 of 1 (latest)

pallid stumpBOT
lapis hemlock
#
const response = await stripe.confirmCardPayment(secret, {
    payment_method: {
       card: this.card,
    },
#

Did you mount this.card?

rocky fulcrum
#

yes

#
        this.card = elements.create("card", {
          style: formStyle,
        });
        this.card.mount("#card-element");
#

I see it on my page and it works, also the onChange for it works

lapis hemlock
#

Okie so how is the result of confirmCardPayment?

rocky fulcrum
#

IntegrationError: Missing value for stripe.confirmCardPayment intent secret: value should be a client_secret string.

#

It is weird because the payment is still hitting the api and I do see a secret attached to it

#

I found the error, I was not returning correctly from the Stripe.paymentIntents.create method.