#menkuichan_73425

1 messages · Page 1 of 1 (latest)

strange laurelBOT
#

Hello menkuichan_73425, 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.
• menkuichan_73425, 0 days ago, 9 messages

vast plume
#

Hello 👋
It depends on if the card was properly set up for future payments or not.
If the card was only set up for single use then no, it won't let you create a subscription payment

glad bronze
#

Okay! Do you know how/where can I understand if card was not single use?

vast plume
#

Some countries may have mandate requirements too so if that mandate is missing then you'd need to collect/setup a mandate for the customer first

glad bronze
#

Thanks, Hanzo!
If we assume the card is reusable, can you guide me on making a POST request to the Stripe API to create a subscription for the user having data that I provided earlier?

vast plume
#

I don't think we have a guide for creating subscriptions with older APIs (You're using Sources which have been replaced by PaymentMethods API)

Here's what you'd need to do afaik:

  1. Make sure that src is set as default source of payment on the customer
    https://stripe.com/docs/api/customers/object?lang=cli#customer_object-default_source

If it's not set, then you can use Update customer API to update the default_source parameter
https://stripe.com/docs/api/customers/update?lang=cli#update_customer-default_source

  1. Then you can create a subscription by calling the create subscriptions API endpoint
    https://stripe.com/docs/api/subscriptions/create?lang=cli
    Make sure to pass in the customer ID in customer parameter
glad bronze
#

Thanks, I will check it now!
Did you conclude that I am using outdated APIs because the card ID starts with "src"?
I'm asking because I haven't seen any other type of card ID on my project.

vast plume
glad bronze
#

I didn't find how we're saving card (i think we don't).
Is it possible that card was saved by default after successful purchase?
Because this src_xxxx Card ID was provided to me inside CSV file. Maybe it was downloaded from stripe dashboard? And because Stripe dashboard still relies on older APIs internally, then it created CSV with this deprecated src ID.