#shweta1806

1 messages · Page 1 of 1 (latest)

bronze jay
drifting basalt
#

I followed this document but in subscription Sepa DD is not working. I contact stripe support and sending mail to them from last week but not getting any success

bronze jay
#

Do you mean you had it working with SetupIntent, but not SetupIntent inside a subscription?

drifting basalt
#

yes

bronze jay
#

Can you give me the Subscription Id?

drifting basalt
#

{
subscriptionId: sub_1Lc0V0GVrxoPH8K0XHBp6WqO, customerId: cus_MJcqkLF2BE29I1,
payment_intent: {clientSecret: pi_3Lc0V1GVrxoPH8K000esZLta_secret_NJ82MTDnPJbI5YHa8ruUAUsOM}, pending_setup_intent: {clientSecret: null}, prices: {price: 1000, currency: eur}, subscriptionStatus: incomplete}

bronze jay
#

Hmm this doesn't have the SetupIntent

#

How did you do these steps?

  • Create Setup Intent for Subscription
  • Get Client Secret
drifting basalt
#

yes, let me send for setupIntent

#

We have created setupIntent using this and in setup Intent we will not get subscription ID initially.

curl https://api.stripe.com/v1/setup_intents
-u sk_test_xxx:
-d "customer"=cus_MKg79MrzKRUqhZ
-d "payment_method_types[]"=sepa_debit \

bronze jay
#

(please remove your key sk_test_xxxx)

bronze jay
#

It's expected to not have Subscription Id inside SetupIntent because they are different thing

#

Normally you create a SetupIntent first, confirm it on client-side. Then after you have successfully collect it, on server-side you can create a Subscription using its PaymentMethod