#powers-cardelement-react

1 messages · Page 1 of 1 (latest)

boreal summitBOT
brisk nest
#

the error is v3:1 Uncaught (in promise) IntegrationError: Invalid value for stripe.confirmPayment(): value should be an object. You specified:

slim bloom
#

you can not use confirmPayment() in this path. You are using the legacy CardElement integration here. You need to use confirmCardPayment() instead. Or switch to using the PaymentElement

brisk nest
#

ok great thanks. thats progeress for me. now im getting CheckoutForm.js?1665:98 Uncaught (in promise) TypeError: Converting circular structure to JSON --> starting at object with constructor 'HTMLDivElement' | property '__reactFiber$t59u5cl3f9b' -> object with constructor 'FiberNode' --- property 'stateNode' closes the circle at JSON.stringify (<anonymous>)

slim bloom
#

powers-cardelement-react

brisk nest
#

am i passing the card elements properly?

slim bloom
#

I don't think so. Sorry React is not my forte, trying to figure out if we have an example

brisk nest
#

ok thanks

slim bloom
#
      payment_method: {
        card: elements.getElement(CardElement)
      }
    });```
brisk nest
#

ah ok sweet thanks. ill dig into this more. i want to use the three elements CardNumberElement, CardExpiryElement, CardCvcElement,

#

for styling purposes, i need them as seperate fields