td
td copied to clipboard
In test mode, subscription_period cannot be 2592000 from createInvoiceLink and cannot buy stars multiple times
Hi there,
I found several issues related to the payment in testing mode:
-
I tried to call
createInvoiceLinkwith2592000(30 days) assigned to subscription_period. However, in test mode, it always returnsSUBSCRIPTION_PERIOD_INVALIDerror. I need to switch to production mode to test this kind of feature. -
I bought stars from test mode using
4242424242424242card once. After that, I couldn't buy stars anymore. It always shwos invoice not found issue from the star store.
-
In Test DC the subscription period must be either 60 or 300.
-
Try to ask for a new invoice.
Hi @levlam, thanks for the quick response.
- Thanks for the information. It works. I couldn't find this info in the document. It would be awesome if the team could update this in the document. 🙏
- I'm not sure how to ask for a new invoice because it is a built-in Telegram star store. It is not from the bot API. Today, it somehow works again. I can buy the test stars. After I bought it, I couldn't buy it again. I assume it is an issue with Telegram Desktop (Mac). Please check the following screenshot: