Open Overdash opened 10 months ago
Hello, sorry for the delay in replies. Stripe does not to my knowledge publish a list of all the possible webhook formats in an easy-to-consume manner so this is currently hand-written and the paypal event has not been added.
I am marking this as a feature request for now.
No need to apologise. Thanks for this :).
Describe the bug
When I test a failed PayPal transaction, the library fails to construct the Webhook Event that's triggered. I get the following:
Weirdly this works when the payment is successful!
To Reproduce
Webhook::construct_event()
to construct the event.Fail Test Payment
on the test payment pageWebhook::construct_event
should produce aErr(BadParse(...))
as aboveExpected behavior
PayPal should be recognised as a variant! And the webhooks should be constructed as any other valid variant.
Code snippets
No response
OS
Windows 10
Rust version
1.70.0
Library version
0.22.2
API version
2022-11-15
Additional context
Successful PayPal attempts work correctly