3 min read | Updated 28 Jul 2023 | Category Services | User AvatarAlin Ionut

Borrow Gateway

Dev-MNS Gateway provide a way for your platform users to borrow crypto in a fast and secure way, via multiple integrations available: Widget, Checkout and API. In order to gain access, you will need to have a valid platform enrolled in Dev-MNS.

1. Widget

Widget solution it's the fastest way for your platform to integrate, and to allow your costumers to start borrow crypto assets using collateral owned crypto assets.

Make sure you first check Widget Embed documentation, for information on how to embed Widget in your platform.

We will configure your desired assets with borrow operation, so your customers can make transactions using crypto (USDT,USDC,BUSD, etc) on your platform at ease. Widget solution generates for your customer a custom Checkout URL, with his particular parameters like assets, amount, etc, and will be redirected to it in order to complete his Borrow Gateway flow.

2. Checkout

Checkout solution represent a hybrid way of implementation, where your platform handle the checkout payload generation, with specific attributes, and our Checkout flow will handle the rest for you.

Make sure you first check Checkout Implementation Flow documentation, for information on how Checkout URL generation.

Bellow it's a payload example for a borrow operation of 10 ETH with USDT as collateral, for a specific service Loan, and then Withdraw the crypto amount (ETH) to user private wallet, as a second operation.

{
"link": {
	"id": "1",
	"username": "username",
	"email": "email@domain.com"
},
"user": {
	"email": "email@domain.com",
	"phone": "40730000000",
	"type": "personal",
	"wallet": "0xfFf75cb3916570824CcEFFe589193c2452383C17",
	"network": "ETH"
},
"payment": {
	"operation": "borrow",
	"symbol": "ETH",
	"amount": "10",
	"secondSymbol": "USDT",
	"service": "21648dc8-78ec-4932-95be-72a2d961abef",
	"second_order_type": "withdraw",
	"attempts": "3"
},
"request_id": "1",
"redirect_url": "https://www.google.com",
"ping_url": "https://www.google.com/ping",
"ip": "86.123.31.5",
"expire": 1571848640
}

3. API

API solution provide a flexible way of implementation on your platform, where you are in control of every aspects regarding user buy/sell flows. You just have to respect couple of thinks based on your particular platform settings.

Make sure you first check API documentation, for information on how API works.

Bellow we have the same example, where your customer request a API Quote for 10 ETH, in USDT, and then Withdraw the crypto amount (ETH) to user private wallet, as a second operation.

{
	"orderType": "borrow",
	"orderAmount": "10",
	"orderSymbol": "ETH",
	"orderPaymentSymbol": "USDT",
	"service": "21648dc8-78ec-4932-95be-72a2d961abef",
	"wallet": "0xfFf75cb3916570824CcEFFe589193c2452383C17",
	"network": "ETH",
	"secondOrderType": "withdraw"
}

If this do not answer your questions, please do not hesitate to contact us at contact@cryptocoin.pro.

Go Top