1) Added currency swap functionality
- Swap history
- To create a new swap you need to click on the "Create New Swap" button
- Select the currency you want to exchange and which you want to receive, also select the wallet from which the funds will be withdrawn and the wallet to which the funds will be credited. After that, you go to the list of partners clicking on the "View offers" button.
- Select the partner that works best for you and go to the last step by clicking the "Exchange" button.
- Click on the "Swap" button to confirm the swap.
- After that, a new entry is created in the swap history.
A transaction is created to withdraw the currency that you exchange and a transaction to replenish the currency that you receive.
- After that, the swap goes into the "Done" status.
2) Added "Max" button on the withdrawal, which allows you to withdraw the maximum possible amount:
3) Added a hash of the transaction for replenishing the client's wallet in the information on the transaction for replenishing the merchant's wallet from the client's wallet:
1) Improved checkout link, now each link is unique and can be used as a receipt
2) The statuses on the payment widget now change depending on the change in the status of the transaction in the blockchain, which speeds up the payment.
3) Added currency price in USD to webhook