Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
twxia opened this issue Apr 20, 2025 · 2 comments

Comments

@twxia
Copy link

twxia commented Apr 20, 2025

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 twxia changed the title In test mode, subscription_period cannot be 2592000 from createInvoiceLink In test mode, subscription_period cannot be 2592000 from createInvoiceLink and cannot buy stars multiple times Apr 20, 2025
@levlam
Copy link
Contributor

levlam commented Apr 21, 2025

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

  2. Try to ask for a new invoice.

@twxia
Copy link
Author

twxia commented Apr 21, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants