feat(stripe): update webhook event construction to ignore API version mismatches

This commit is contained in:
Chang lue Tsen 2026-02-08 06:43:34 -05:00
parent 701d47ed21
commit ea94f3c9f9

View File

@ -155,7 +155,9 @@ func (c *Client) QueryOrderStatus(orderNo string) (bool, error) {
// ParseNotify
func (c *Client) ParseNotify(payload []byte, signature string) (*NotifyResult, error) {
event, err := webhook.ConstructEvent(payload, signature, c.Config.WebhookSecret)
event, err := webhook.ConstructEventWithOptions(payload, signature, c.Config.WebhookSecret, webhook.ConstructEventOptions{
IgnoreAPIVersionMismatch: true,
})
if err != nil {
return nil, err
}