#.fallenblade
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- .fallenblade, 16 minutes ago, 7 messages
- .fallenblade, 6 hours ago, 8 messages
Hello! Those brand logos are not available via the API so you'd need to source the assets from elsewhere
Okay, thanks.
@fading nova
Another question.
How do you use the saved payment method in the next subscription? I want my user to not input the card details again when they want to subscribe to our service again.
It would depend on how you're integrating. Generally you'd set the default_payment_method on the Subscription and we'd bill that automatically
For example, when the subscription is canceled. And the user wants to subscribe again using the same payment method. How do you do that without the user input the same card details again? because as of now I am using elements on confirmPayment()
Assuming you'd saved the PM to the Customer, you can retrieve them using this endpoint: 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.
You could build a UI that displays their previous payment methods, allow them to select a new one and then pass the pm_xxx ID to confirmCardPayment, like: https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-existing
Ohhh, what's the difference between confirmPayment() versus confirmCardPayment ?
You use confirmPayment with a Payment Element instance. In the scenario you're describing, there'd be no Payment Element so you need to use the PM specific confirmation method depending on the type of the PM (i.e. card)
Awesome! Thanks for your help.
np
By the way, how do you save PM to the customer? Since currently, I am getting the payment_method_id in subscription object.
It should automatically be attached, you can confirm via that endpoint I shard
Okay, thanks!