Implementing a cryptocurrency-based payment system
In a cryptocurrency-based payment system, the buyer needs to first deposit funds into an account, after which those funds are available to pay for goods and services.
After the buyer has transferred a payment to the merchant, the merchant can withdraw the funds. Alternatively, the buyer can withdraw any unused funds at any time.
This type of payment processor relies on three types of transactions:
-
Deposit
-
Transfer
-
Withdrawal
When implementing this type of payment system, your application needs to include a way for the buyer to specify the necessary information, and then the application needs to send that information to the StarkEx gateway.
For information on the flows and the API calls that you must implement in your payment system, see the following topics:
-
Deposit and withdrawal for offchain accounts for information on interactions between the onchain contract and the offchain application, functions, and event listeners For information on the required flows and the APIs required to implement them, see: