Create Deposit

To initiate a deposit transaction within Vevopay, please refer to the information provided on this page. Additionally, ensure you consult the Important Information page for details on hashcode.

Creating a new Deposit

  • The CustomerDeposit method processes customer deposit requests.

CustomerDeposit

HTTP: POST

https://vevopay.io/api/Vevo/CustomerDeposit

Creates a new deposit.

Headers

NameTypeDescription

WebApiKey*

String

API key for authentication and authorization (ask it from Vevopay officials)

Request Body (fields marked with * are required)

NameTypeDescription

amount*

string

amount of the transaction

userId*

string

userid

name*

string

name of the user

username*

string

username

IslemTuru*

String

type of transaction (check the methodlist)

processId*

String

your transaction id

RedirectUrl

String

URL address where the user should be redirected after the transaction

// check out the important information page for hashcode and method list

{
    "status": "successful",
    "url": "https://vevopay.io/iFrame/Papara?trackingID=a425de30-3a39-45a9-aea3-62edd4f522ac",
    "hashcode": "3a3cc62daab0f7aade1e0c718c40a2e7", 
    "hataMesaj": null,
    "trackingId": "a425de30-3a39-45a9-aea3-62edd4f522ac"
}
// Example Curl for the CustomerDeposit endpoint

curl --location 'https://vevopay.io/api/Vevo/CustomerDeposit' \
--header 'WebApiKey: xxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
    "userId": "testuser",
    "name": "test user name",
    "username": "testuser",
    "IslemTuru": "papara",
    "processId": "test",
    "redirectUrl": "https://www.google.com/"
}'

Please note the successful status returned by the CustomerDepositmethod does not indicate a successfully finished transaction, rather it indicates that the record of the transaction request is successfully taken. Final result of the of transaction process will be sent from us to your callback URLs, please refer to the Callback page.

Example Usage

public class YourController : Controller
{
    public async Task<ActionResult> SendApiRequest()
    {
        using (var client = new HttpClient())
        {
            var values = new
            {
                processId = "your_process_id",
                IslemTuru = "your_islem_turu",
                amount = "your_amount",
                userId = "your_user_id",
                name = "your_name",
                username = "your_username"
            };

            client.DefaultRequestHeaders.Add("WebApiKey", "your_web_api_key");

            var json = JsonConvert.SerializeObject(values);
            var content = new StringContent(json, System.Text.Encoding.UTF8, "application/json");
            var response = await client.PostAsync("https://vevopay.io/api/Vevo/CustomerDeposit", content);

            if (!response.IsSuccessStatusCode)
            {
                // Handle error or throw exception
                return View("Error"); 
            }

            var responseString = await response.Content.ReadAsStringAsync();
            var responseObject = JsonConvert.DeserializeObject<dynamic>(responseString);

            return View(responseObject); // Send response from API to a view
        }
    }
}

Last updated

Logo

Vevopay Inc. ℗ 2023