This method adds funds to a merchant’s account balance for testing and development purposes. This is a development feature that simulates a collection transaction from bank/MNO to increase the merchant’s account balance. For payload explanations for both request and response, click here
using OneKhusa.SDK; 
using OneKhusa.SDK.Models.FakeData.Collections; 

//code omitted for brevity 
 
OneKhusaResponse<MockPaymentResponse> response = await client 
    .FakeData 
    .Collections 
    .MockPaymentAsync(new MockPaymentRequest 
    { 
        ConnectorId = 221300, 
        MerchantAccountNumber = 12345678, 
        TopupAmount = 785000.00M, 
        CreatedBy = "joe.doe@example.com" 
    }); 

if (response is { IsSuccess: true, Data: not null }) 
{ 
    Console.WriteLine($""" 
        Message: {response.Data.Message} 
    """); 
    Console.ReadLine(); 
    return;
} 
//it means an error has occurred: RFC7807 compliant error object
Console.WriteLine($"""
        Type: {response.Error?.Type};
        Title: {response.Error?.Title};
        Detail: {response.Error?.Detail};
        ErrorCode: {response.Error?.ErrorCode};
        Status: {response.Error?.Status};
        Instance: {response.Error?.Instance};
        Errors: {string.Join(";", response.Error?.Errors ?? [])}
""");
Console.ReadLine();
Note: This method accepts custom idempotency key generated by your system. By default, if not specified, it will create one on your behalf.