Subscription Workflow Tests #7345
Replies: 2 comments 3 replies
-
I am also struggling with this. There is no way to sandbox the full process. Making more temporary guilds to test the full work flow is not very efficient and pulls on discords resources, personally I think more love needs to go into the app subscription (I am looking for guild subscriptions). If sandboxing to test the full work flow and documentation was better I think that I would have a chance of getting guild subscription rolled out for my bot rolled out faster and more efficient. |
Beta Was this translation helpful? Give feedback.
-
There is an api endpoint for deleting test entitlements.
If you make a purchase through the in-app menu, you do have to wait a month….
But indeed, you are correct. If you make a test purchase using the in-app menu, you have to wait for a month for it to change status if canceled or renew.
…________________________________
From: Liam Gibbins ***@***.***>
Sent: Thursday, January 23, 2025 10:52:56 AM
To: discord/discord-api-docs ***@***.***>
Cc: ThisIsSparta ***@***.***>; Author ***@***.***>
Subject: Re: [discord/discord-api-docs] Subscription Workflow Tests (Discussion #7345)
I figured out my issue it refuses to get the application id from the environment variables, its been a pita.
I can not create a bloody test entitlement DEBUG - Response Text: {"message": "An entitlement has already been granted for this resource", "code": 40074}
This is because I have to wait for a month for the test subscription to be deleted when subscribing to see how the workflow works and the json returned, basically with the limited documentation I did not fully understand the process but now I am aware.
There needs to be an easy way to test the full workflow without the month wait for it to be deleted, a simple switch in the developers portal for an app to put the subscription workflow in a sandbox like when working with PayPal payment processes.
This feature of the discord API/service seriously need some more work to be done on it and some documentation updates with warnings about the month wait for a subscription to be deleted.
—
Reply to this email directly, view it on GitHub<#7345 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKNSNMFBPCP6BG36HJYKKDL2MDCYRAVCNFSM6AAAAABVFNZ7JOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJSHAYTSMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone.
I am working on implementing subscription payments on a discord app and I am stuck at the point where I need to test the subscription workflow from the moment when a user subscribes to the moment where the user cancels the subscription or is getting renewed.
As I understand the documentation, there isn't a way to test trigger the events generated by subscription create/update/delete apart from subscribing from a dev account to make it free. With that said and done, you are stuck with the subscription on your account with no way to remove it in order to try again, unless you wait until the subscription has ran out in a month.
Another issue that I cannot find a solution for removing active/canceled test subscriptions from a guild. This way I do not have to create multiple guilds every time I want to create a new subscription.
Removed SKUs from the account still show if you are fetching them from the API making the debugging or the testing very difficult.
I apologise if I have missed the documentation where it tells you how to do this.
Any ideas are much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions