![]() The provider_token parameter is where you put the token value that you've obtained earlier via Botfather. Use the sendInvoice method to generate an invoice and send it to a chat. There are two ways of creating an invoice: A. The bot forms an invoice message with a description of the goods or service, amount to be paid, and requested shipping info. The user contacts and requests to purchase something. See Bot API: Payments for the complete list of available methods and objects. You can switch between test mode and live mode as many times as you want, but please see the live checklist before you go live. Real cards can't be used in test mode, but you can use test cards like 4242 4242 4242 4242 ( full list here). When in this mode, you can make payments without actually billing any accounts. While you're still developing and testing payments for your bot, use the “Stripe TEST MODE” provider. Testing Payments: the 'Stripe TEST MODE' Provider You will find the necessary methods for building your payment implementation in the Payments Section of the Bot API Manual. You will use the token when working with the Bot API.Each will have a name, a token, and the date the provider was connected. The message will now show available providers. ![]()
0 Comments
Leave a Reply. |