Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe connect webhook incorrectly set #65

Open
half2me opened this issue Aug 23, 2022 · 0 comments
Open

Stripe connect webhook incorrectly set #65

half2me opened this issue Aug 23, 2022 · 0 comments

Comments

@half2me
Copy link

half2me commented Aug 23, 2022

Hi, I noticed when creating two webhooks:

resource "stripe_webhook_endpoint" "stripe" {
  url = "${aws_api_gateway_stage.stage.invoke_url}${aws_api_gateway_resource.stripe.path}"

  enabled_events = [
    "charge.captured",
    "charge.expired",
    "charge.failed",
    "charge.pending",
    "charge.refund.updated",
    "charge.refunded",
    "charge.succeeded",
    "charge.updated",
    "checkout.session.async_payment_failed",
    "checkout.session.async_payment_succeeded",
    "checkout.session.completed",
  ]
}

resource "stripe_webhook_endpoint" "stripe-connect" {
  url     = "${aws_api_gateway_stage.stage.invoke_url}${aws_api_gateway_resource.stripe-connect.path}"
  connect = true

  enabled_events = [
    "account.application.deauthorized",
    "account.updated",
    "charge.captured",
    "charge.refund.updated",
    "charge.refunded",
    "checkout.session.async_payment_failed",
    "checkout.session.async_payment_succeeded",
    "checkout.session.completed",
    "customer.deleted",
  ]
}

Both webhooks are being created as type "Account" instead of the second one as type "Connect"

When running terraform apply again, it sees this, and shows me in the plan, that it will change the type to "connect". However, no matter how many times I run terraform apply it "succeeds" but never changes the type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant