Guide 1 Docs 2 Reference 3

Function of shop

shop.on_paid

Called once per paid purchase; returning without an error hands it over. An error leaves it waiting, to be called again later.

shop.on_paid(handler: (purchase: ShopPurchase) -> ()) → Connection

Parameters

handler(purchase: ShopPurchase) -> ()required

Returns

Connection

Used in