Liquid, JavaScript, themes, sales channels
Hi - I'm working webhook handlers for a Shopify app that will leverage the new Subscriptions APIs. I would like to run a production env test of a failed billing attempt (to trigger the `subscription_billing_attempts/failure` webhook) but I can't seem to configure a scenario where that happens.
In order to test this out, I created a subscription contract buy purchasing a subscription product on my dev store with a valid card. Then I triggered a payment method update email, clicked the link in the email and tried updating the card to one that would trigger a failed billing attempt. I've read through the test mode docs and tried the following:
Anybody have any recommendations on how to trigger a failed subscription billing attempt other than manually sending my webhook handler mock data?
Thanks in advance for any help!
Hi,
I am currently facing the same scenario but I haven't got anything yet. The thing is that there is BillingAttempt event in docs but it not in events in dropdown list when we create a webhook.
If you have anything related to that kindly share.
I've run in to the same issue and it doesn't seem like there is much help out there. The only thing I can think of is to set the expiration date to expire in the current month and then wait for it to expire. Not very efficient given there are currently 27 days left in this month, but it's all I have.
Just stumbled onto this thread while having the same issue too. I also saw this thread:
https://community.shopify.com/c/Subscription-APIs/There-doesn-t-seem-to-be-a-way-to-test-a-failed-tr...
that suggests it may be possible if you revoke the customer payment method?
It cannot be revoked unfortunately, it results in an error. But I did leave a detailed way to make it work on that thread. Once again the link:
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024