#addypaladin-subscription

1 messages · Page 1 of 1 (latest)

lone vine
#

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
lean depot
#

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.

lone vine
lean depot
#

acct_1IGjFeIzYqTTKc50

lone vine
#

sorry, can you share the PaymentIntent id too?

lean depot
#

But I have deleted them I dont have any I am trying to create a new

lone vine
#

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.

lean depot
#

Yes

lone vine
#

in the payment_intent.canceled event there should be a PaymentIntent id

lean depot
#

Let me check

lean depot
#

ID: pi_3KU6ygIzYqTTKc502jHJ71d1

low granite
lean depot
#

No I am not doing it no such webhook is triggered also when I create a subscription

low granite
#

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.

lean depot
#

Ok thank you I will check it