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

fix: modified handleStripeEvent to account for missing metadata payload #6952

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

sebastianwzq
Copy link
Contributor

@sebastianwzq sebastianwzq commented Dec 7, 2023

Problem

Elevated 400 errors from POST api/v3/notifications/stripe due to empty StripeMetadata.
This could be due to agencies using their Stripe account to process payments outside of FormSG

Closes FRM-1563

Solution

Updated handlers to return 202 if StripeMetadata does not conform to the shape defined by FormSG

Breaking Changes

  • Yes - this PR contains breaking changes
    • Details ...
  • No - this PR is backwards compatible

Features:

  • Details ...

Improvements:

  • Details ...

Bug Fixes:

  • Details ...

Before & After Screenshots

BEFORE:

AFTER:

Tests

  • Verify that payment webhooks are returning 200 from stripe dashboard

Deploy Notes

New environment variables:

  • env var : env var details

New scripts:

  • script : script details

New dependencies:

  • dependency : dependency details

New dev dependencies:

  • dependency : dependency details

Copy link
Contributor

@justynoh justynoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sebastianwzq sebastianwzq merged commit 256ad0e into develop Dec 7, 2023
38 checks passed
@sebastianwzq sebastianwzq deleted the fix/fix-missing-stripe-metadata-errors branch December 7, 2023 08:31
@sebastianwzq sebastianwzq mentioned this pull request Dec 7, 2023
7 tasks
Copy link

linear bot commented Dec 7, 2023

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.

None yet

2 participants