#Webdew-susbcriptions

1 messages · Page 1 of 1 (latest)

sonic copper
#

Hey, what are the 'old customers' in this context and where are they coming from?

#

Sounds like you just need to create Subscription objects for them in Stripe, no?

sterile pivot
#

the old customer are the customers before implementation of the stripe and they are in my database

sterile pivot
#

with active state

sonic copper
#

By expiry date you mean the billing cycle date?

sterile pivot
#

yes

sonic copper
sterile pivot
#

but this required me to create the customer as the customer id is mandatory and to create customer i have to give payment method id and to create payment method i need card details which i dont have

sonic copper
#

You don't need to pass the payment method when creating the customer

#

You can do that when you'd confirm the initial Setup Intent/Payment Intent

sterile pivot
#

but when creating subscription with customer without payment method it shows This customer has no attached payment source or default payment method.

sonic copper
#

Can you share the ID of the API request? req_xxx

sterile pivot
sonic copper
#

I need to see the actual API request body

sterile pivot
#

this is the curl of the request i was making

#

?

sonic copper
#

Please don't share your API keys

#

You should re-roll them

sterile pivot
#

this is request body

#

is it ok ?

sonic copper
#

And what's the response?

sterile pivot
sonic copper
#

Can you share that Customer ID?

sterile pivot
#

cus_LKxGetWAA46H93

#

?

sonic copper
#

Sorry, looking now. Please be patient as there's other users who also need help

#

I think this is because of your API version: 2018-11-08

sterile pivot
#

what to do to resolve it ?

sonic copper
#

You need to pass payment_behaviour: 'allow_incomplete' when creating the Subscription

sterile pivot
#

sent

#

but still same response

#

waiting for my turn 😅

sonic copper
#

Yeah you're gonna have to adapt your integration to collect the payment details first

#

Or update your API version

sterile pivot
sonic copper
#

You can either do it on a per API request basis, or overall for the account (which impacts all your existing integrations)

sterile pivot
#

i need it to do only for test account

#

so that i can create subscriptions

#

and use the old API keys for the live one

sonic copper
sterile pivot
#

any alternate to this you can tell ?

sterile pivot
#

or i have to regenerate API keys

sonic copper