#addypaladin-subscription
1 messages · Page 1 of 1 (latest)
heya @lean depot, i'm a bit confused. Are you asking about two different scenarios where the payment_intent.canceled is being called automatically? i.e.
- payment_intent.canceled is being called automatically when a user has removed his/her card and his/her subscription is expired.
- When he/she tries to adds a new card when creating a subscription. The subscription automatically get expired and payment_intent.canceled
So the scenario is. I am implementing my own custom portal for subscription based product. I have completed the normal flow but I have encountered this issue when I first cancelled a running subscription and after that I removed all the payment methods attached to that customer. After doing that I tried to create a new subscription and when I enter card details and hit proceed I get this error payment_method_invalid_parameter on the frontend and in wbehooks payment_intent.canceled was called.
Can you share your account id so that I can take a closer look? You can find your account id by logging in to https://dashboard.stripe.com/settings/account. It'll be in the upper right hand corner and looks like acct_123
acct_1IGjFeIzYqTTKc50
sorry, can you share the PaymentIntent id too?
But I have deleted them I dont have any I am trying to create a new
you mentioned that I tried to create a new subscription and when I enter card details and hit proceed I get this error payment_method_invalid_parameter on the frontend and in wbehooks payment_intent.canceled was called.
Yes
in the payment_intent.canceled event there should be a PaymentIntent id
Let me check
ID: pi_3KU6ygIzYqTTKc502jHJ71d1
you are making an API call to cancel the subscription 4 seconds after you create it(before the customer has entered any payment info) : https://dashboard.stripe.com/test/logs/req_JK8gwOxXSUaEWV . Do you know why you do that?
No I am not doing it no such webhook is triggered also when I create a subscription
you are doing it though, it's your API key and the same version of the Python library you use normally.
so you probably have a webhook endpoint you've forgotten about for example.
Ok thank you I will check it