Ipaymu.Dotnet.Api
1.0.1
dotnet add package Ipaymu.Dotnet.Api --version 1.0.1
NuGet\Install-Package Ipaymu.Dotnet.Api -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ipaymu.Dotnet.Api" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ipaymu.Dotnet.Api" Version="1.0.1" />
<PackageReference Include="Ipaymu.Dotnet.Api" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ipaymu.Dotnet.Api --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ipaymu.Dotnet.Api, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ipaymu.Dotnet.Api@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ipaymu.Dotnet.Api&version=1.0.1
#tool nuget:?package=Ipaymu.Dotnet.Api&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ipaymu-Dotnet-Api
.Net package for iPaymu.com Indonesia payment gateway.
Installation
Install Ipaymu-Dotnet-Api with:
.NET CLI
dotnet add package Ipaymu.Dotnet.Api --version 1.0.1
paket CLI
paket add Ipaymu.Dotnet.Api --version 1.0.1
Then, import it using:
using IpaymuLibrary;
Example
Direct Payment
private static async Task DirectPayment()
{
DirectPayment.sandbox = true; // sendbox set true or false
DirectPayment.va = "1179000899";// iPaymu VA
DirectPayment.apiKey = "QbGcoO0Qds9sQFDmY0MWg1Tq.xtuh1";
DirectPayment.name = "bayu";
DirectPayment.phone = "085777777777";
DirectPayment.email = "admin@email.com";
DirectPayment.amount = "10000";
DirectPayment.notifyUrl = "https://your-website/callback-url";
DirectPayment.expired = "24";
DirectPayment.expiredType = "hours";
DirectPayment.comment = "tes";
DirectPayment.referenceId = "1";
DirectPayment.paymentMethod = "va";
DirectPayment.paymentChannel = "bca";
DirectPayment dr = new DirectPayment();
await dr.Initialize;
Console.WriteLine(CheckTransaction.responses);
}
Direct Payment COD
private static async Task DirectPaymentCod()
{
DirectPaymentCod.sandbox = true; // sendbox set true or false
DirectPaymentCod.va = "1179000899";//iPaymu VA
DirectPaymentCod.apiKey = "QbGcoO0Qds9sQFDmY0MWg1Tq.xtuh1";
DirectPaymentCod.name = "bayu";
DirectPaymentCod.phone = "085777777777";
DirectPaymentCod.email = "admin@email.com";
DirectPaymentCod.amount = "10000";
DirectPaymentCod.notifyUrl = "https://your-website/callback-url";
DirectPaymentCod.expired = "24";
DirectPaymentCod.expiredType = "hours";
DirectPaymentCod.comment = "tes";
DirectPaymentCod.referenceId = "1";
DirectPaymentCod.paymentMethod = "va";
DirectPaymentCod.paymentChannel = "bca";
DirectPaymentCod.product = new string[] { "T-Shirt", "Jacket", "Shoes" };
DirectPaymentCod.qty = new string[] { "1", "1", "2" };
DirectPaymentCod.price = new string[] { "100000", "250000", "350000" };
DirectPaymentCod.weight = new string[] { "1", "1", "1" };
DirectPaymentCod.width = new string[] { "1", "1", "2" };
DirectPaymentCod.height = new string[] { "1", "1", "1" };
DirectPaymentCod.length = new string[] { "1", "1", "2" };
DirectPaymentCod.deliveryArea = "bali";
DirectPaymentCod.deliveryAddress = "tabanan";
DirectPaymentCod drc = new DirectPaymentCod();
await drc.Initialize;
Console.WriteLine(DirectPaymentCod.responses);
}
Check Transaction
private static async Task CheckTransaction()
{
CheckTransaction.sandbox = true; // sendbox set true or false
CheckTransaction.va = "1179000899";//iPaymu VA
CheckTransaction.apiKey = "QbGcoO0Qds9sQFDmY0MWg1Tq.xtuh1";
CheckTransaction.transactionId = "1"; // Paymu transaction id
CheckTransaction.account = "1179000899"; //iPaymu VA
CheckTransaction ct = new CheckTransaction();
await ct.Initialize;
Console.WriteLine(CheckTransaction.responses);
}
List PaymentMethod
private static async Task ListPaymentMethod()
{
ListPaymentMethod.sandbox = true; // sendbox set true or false
ListPaymentMethod.va = "1179000899"; //iPaymu VA
ListPaymentMethod.apiKey = "QbGcoO0Qds9sQFDmY0MWg1Tq.xtuh1";
ListPaymentMethod ListPayment = new ListPaymentMethod();
await ListPayment.Initialize;
Console.WriteLine(ListPaymentMethod.responses);
}
Check Balance
private static async Task CheckBalance()
{
CheckBalance.sandbox = true; // sendbox set true or false
CheckBalance.va = "1179000899"; //iPaymu VA
CheckBalance.apiKey = "QbGcoO0Qds9sQFDmY0MWg1Tq.xtuh1";
CheckBalance.account = "1179000899"; //iPaymu VA
CheckBalance CheckBalances = new CheckBalance();
await CheckBalances.Initialize;
Console.WriteLine(CheckBalance.responses);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 671 | 5/19/2023 |