#laorik
1 messages · Page 1 of 1 (latest)
so on our backend when we look at the customer's cards it seems to return 'no cards'
What are you looking at specifically?
Can you share an example customer ID and perhaps a request example from what you check?
You should be listing the customer payment methods, with type=card if you want to restrict to just cards:
https://stripe.com/docs/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
customer: cus_LPvqGXVFiLtTig
(two of the cards on there are created through this payment sheet, one is created via a form on our admin portal)
we're using the ruby sdk specifically to look at the customer cards
@stripe_customer = Stripe::Customer.retrieve(@customer.stripe_customer_id)
and then calling .cards or .sources on that response object
it only returns cards created through our backend form (which all have the card_ id prefix)
I guess to make a long question short, is it possible to use the payment sheet to create card on a customers account and then use those as sources on charge (not payment intent) calls?
No, it seems like you're mixing old and new integration patterns which I wouldn't recommend and aren't meant to work together
The older source card_123 objects are compatible with payment intents for backward compatibility, but not the other way around
well thats a bummer, the payment sheet is beautifully implemented and hoped to use it here as well without a major rework of our backend