#ghadgraft
1 messages · Page 1 of 1 (latest)
I think you can use card.generated_from on the payment method object: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-generated_from
I've tried using generated_from but it is being returned as nil, even when it shows as being created via a payment intent or a setupintent
I'm using the ruby library and have this there is a card but no details in generated from:
Stripe::PaymentMethod.retrieve('pm_id').card.generated_from
HI 👋
I'm taking over as @wise portal needs to go. Do you have a Payment Method ID I could check? Test mode ones work fine.
Thanks, looking
?
Still checking, it got pretty busy here all of a sudden and there's only me
I am not seeing any field that would clearly indicate this payment method was set up for future use. Reviewing the API calls that generated and attached it, https://dashboard.stripe.com/test/logs/req_OFAnnGNU8cxqVy, it looks like it was created and attached using the Billing portal.
Thats right one of them was created by adding a card on the billing portal and one was created by paying for an invoice via the stripe portal
Both of these should create payment methods that can be used for off-session payments since they are created as part of Billing payment flows and those require off-session payments but I'm not finding a simple property in either the event or the Payment Method that would make that easy to check. I can raise this as a feature request internally
yes please
Feedback filed.