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

Handling of deleted webhooks #18

Open
torotil opened this issue Apr 24, 2020 · 0 comments
Open

Handling of deleted webhooks #18

torotil opened this issue Apr 24, 2020 · 0 comments

Comments

@torotil
Copy link
Contributor

torotil commented Apr 24, 2020

If a webhook was deleted on the Stripe side for any reason, then nothing happens on our end. The only outcome is that payments never reach the payment_status_success.

Even recreating the webhook manually is a hassle:

  1. Some code needs to be run to delete the old webhook data:
$m = entity_load_single("payment_method", 5);
unset($m->controller_data["webhook_key"]);
unset($m->controller_data["webhook_id"]);
entity_save("payment_method", $m);
  1. Go to admin/config to load and save the payment method.

We should think about:

  • How can we detect a deleted webhook earlier?
  • Should we automatically recreate the webhook? If so what should trigger that? If not should we build some reporting about this?
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