#ijsje

1 messages · Page 1 of 1 (latest)

serene tundraBOT
rigid flax
#

if event_type == 'customer.subscription.updated': subscription.subscription = data_object['id'] subscription.save()

#

Is there a certain status I can check such that incomplete subscriptions or failed subscriptions don't update my subscription_id in the database

sharp saddle
#

Now I have 2 subscriptions in my customer account, where the incomplete subscription automatically fails after a certain time it overwrites my active subscription in my database.
You have two option I think:

  • you can delete the first Subscription
  • Add a check before creating a Subscription for a customer and see if they have already a Subscription that matches their choices. You can update the first subscription if they choose another options.
long breach
#

Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.