td icon indicating copy to clipboard operation
td copied to clipboard

In test mode, subscription_period cannot be 2592000 from createInvoiceLink and cannot buy stars multiple times

Open twxia opened this issue 1 year ago • 2 comments

Hi there,

I found several issues related to the payment in testing mode:

  1. I tried to call createInvoiceLink with 2592000 (30 days) assigned to subscription_period. However, in test mode, it always returns SUBSCRIPTION_PERIOD_INVALID error. I need to switch to production mode to test this kind of feature.

  2. I bought stars from test mode using 4242424242424242 card once. After that, I couldn't buy stars anymore. It always shwos invoice not found issue from the star store.

twxia avatar Apr 20 '25 22:04 twxia

  1. In Test DC the subscription period must be either 60 or 300.

  2. Try to ask for a new invoice.

levlam avatar Apr 21 '25 09:04 levlam

Hi @levlam, thanks for the quick response.

  1. 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. 🙏
  2. 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:
Image

twxia avatar Apr 21 '25 09:04 twxia