pyrobale.objects.precheckoutquery¶
Classes¶
Module Contents¶
- class pyrobale.objects.precheckoutquery.PreCheckoutQuery(id, from_user, currency, total_amount, invoice_payload, **kwargs)[source]¶
- Parameters:
id (str)
from_user (pyrobale.objects.user.User)
currency (str)
total_amount (int)
invoice_payload (str)
- client: pyrobale.client.Client[source]¶
- async answer(ok, error_message=None)[source]¶
Answers to a ‘PreCheckoutQuery’ update
- Parameters:
ok (bool) – True for allowing the payment and False for showing the error message
error_message (str) – Optional: An string to show the user if the ok argument is False
- Returns:
True in success
- Return type:
bool