Skip to content

Emit PaymentMethod attach and detach webhooks#93

Merged
neilberkman merged 1 commit into
mainfrom
fix-payment-method-webhooks
May 20, 2026
Merged

Emit PaymentMethod attach and detach webhooks#93
neilberkman merged 1 commit into
mainfrom
fix-payment-method-webhooks

Conversation

@neilberkman

Copy link
Copy Markdown
Owner

Summary

  • Emit payment_method.attached after POST /v1/payment_methods/:id/attach successfully updates the PaymentMethod.
  • Emit payment_method.detached after POST /v1/payment_methods/:id/detach successfully clears the customer.
  • Add collection-mode coverage for both webhook events and a TestClient.detach_payment_method/1 helper.

Validation

  • mise exec -- mix test test/paper_tiger/webhook_collection_test.exs test/paper_tiger/resources/payment_method_test.exs
  • mise exec -- mix test
  • mise exec -- mix format --check-formatted
  • git diff --check

@neilberkman
neilberkman marked this pull request as ready for review May 20, 2026 23:34
@neilberkman
neilberkman merged commit d292676 into main May 20, 2026
3 checks passed
@neilberkman
neilberkman deleted the fix-payment-method-webhooks branch May 20, 2026 23:35
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

Successfully merging this pull request may close these issues.

1 participant