💰Receive Payments
Accept SMILE payments and let your players earn more when they play more
Need technical help or have feedback? Contact an engineer directly [email protected].
Front-end
1. Render SmileReceiveButton
The SmileReceiveButton
will need to be rendered by the front-end client adjacent to your submit button. When users pay you with SMILE, they will be prompted to sign the blockchain transaction, all through the SDK. The callback function sends the returned signed_txn
(with uuid
) to your endpoint in order to verify business logic before finalizing the transaction through the backend SDK.
Server
2. Complete transaction
Call the following method to finalize the transaction:
and pass the payload outlined below. If receive_status['status']==201
and the method does not throw an exception, the transaction has been successfully completed and the funds are in your Algorand wallet. You can check receive_status['message']
for success/error messages.
Make sure you check USD-equivalent you successfully received:
HTTP
Last updated