This wrapper simplifies working with the MultiSafepay API and lets you integrate MultiSafepay in your .Net application.
MultiSafepay is a Dutch payment service provider, which takes care of contracts, processing transations, and collecting payment for a range of local and international payment methods. Start selling online today and manage all your transactions in one place!
You will need a MultiSafepay account. Consider creating a test account first.
Clone this git repository. (Also available on NuGet).
Install-Package MultiSafepay
Set up the client for testing:
var client = new MultiSafepayClient("API_KEY", "https://testapi.multisafepay.com/v1/json/");
Get a list of payment methods:
var gateways = client.GetGateways(null, "EUR");
Create a test order:
var client = new MultiSafepayClient("API_KEY", "https://testapi.multisafepay.com/v1/json/");
var order = new Order
{
Type = OrderType.Redirect,
OrderId = Guid.NewGuid().ToString(),
GatewayId = "IDEAL",
AmountInCents = 1066,
CurrencyCode = "EUR",
Description = ".Net wrapper test",
PaymentOptions = new PaymentOptions("http://example.com/notify", "http://example.com/success", "http://example.com/failed"),
Customer = new Customer()
{
FirstName = "First Name",
LastName = "Last Name",
Country = "NL",
Locale = "EN",
Email = "[email protected]"
}
};
var result = client.CustomOrder(order);
See more examples.
Create an issue on this repository or email [email protected]
Feel free to create pull requests on this repository to suggest improvements.
See MultiSafepay Docs – API reference.