#ar7casper-client-secret

1 messages · Page 1 of 1 (latest)

latent cave
#

Hi. You mean a client_secret from a PI to render the Payment Element (I assume?)?

serene gulch
#

yep, i'm switching from card element to payment element (need google pay and apple pay)

#

Also, couldn't find a way to split it in my own components

#

That's what I used till now for CardElements, what's the equivalent for PaymentElements?

#

That's the response I'm getting after submitting a form more than once

  "error": {
    "code": "setup_intent_unexpected_state",
    "doc_url": "https://stripe.com/docs/error-codes/setup-intent-unexpected-state",
    "message": "You cannot confirm this SetupIntent because it has already succeeded.",
    "setup_intent": {
      "id": "XXXXXXXXXX",
      "object": "setup_intent",
      "cancellation_reason": null,
      "client_secret": "XXXXXXXXXX",
      "created": 1654513367,
      "description": null,
      "last_setup_error": null,
      "livemode": false,
      "next_action": null,
      "payment_method": "XXXXXXXX",
      "payment_method_types": [
        "card"

      ],
      "status": "succeeded",
      "usage": "off_session"
    },
    "type": "invalid_request_error"
  }
}```
latent cave
serene gulch
#

Is there a way to mock / quickly create it?

#

Is there a way to setup google and Apple Pay with card elements?

latent cave
latent cave
serene gulch
#

Awesome, thakes

latent cave
#

np!