wyyerd / stripe-rs

Rust API bindings for the Stripe HTTP API.
Apache License 2.0
219 stars 88 forks source link

Add Card to CreatePaymentMethod #175

Open hiimzimmy opened 3 years ago

hiimzimmy commented 3 years ago

Hey!

When trying to create a payment method with the type PaymentMethodType::Card, stripe returns "Missing required param: card". Looking into the class itself, looks like has properties for fpx, ideal, sepa and au_becs, but not card.

arlyon commented 3 years ago

Hey, yes, it seems that the codegen has missed the card field. Here is the relevant part in the docs:

https://stripe.com/docs/js/payment_methods/create_payment_method#stripe_create_payment_method-paymentMethodData-card

Ideally we need to figure out why that field wasn't included and add it to the codegen, happy to provide pointers.