Closed ThouCheese closed 4 years ago
Fixed in https://github.com/wyyerd/stripe-rs/commit/0aeb9a6551413239b96d94289f84d067eea4b963 specifically to generally handle this kind of issue when stripe developers decide to use this API pattern.
This has been published to crates.io as version 0.12.1
.
Im migrating my payment implementation to use the
PaymentIntent
andPaymentMethod
API's, and I'm running into some trouble with the webhook. The webhook posts anevent
to my web server. Theevent
in turn contains apayment_intent
object, which contains a list of charges. One of these charges is formatted as follows:The object is structured according to how a
charge
should be structured, save for the format of theid
. This causesstripe-rust
to emit an error instead of parsing the charge. I'm not sure if this is an error withstripe-rust
orstripe
. However, the checkout works perfectly if I change the impl FromStr for ChargeId to the following:I'm holding off on submitting a pull request, because this code is generated by a macro and I'm not sure how you guys would prefer to see this fixed. Thanks!