Skip to content

A .Net wrapper for the MultiSafepay payments API. Provides support for all payment methods, Pay After Delivery and Fast Checkout.

License

Notifications You must be signed in to change notification settings

MultiSafepay/.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.Net wrapper for the MultiSafepay API

This wrapper simplifies working with the MultiSafepay API and lets you integrate MultiSafepay in your .Net application.

About MultiSafepay

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!

Requirements

You will need a MultiSafepay account. Consider creating a test account first.

Installation

Clone this git repository. (Also available on NuGet).

Install-Package MultiSafepay

Usage

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 = "test@multisafepay.com"
                }
            };

var result = client.CustomOrder(order);

See more examples.

Support

Create an issue on this repository or email integration@multisafepay.com

Contributions

Feel free to create pull requests on this repository to suggest improvements.

API reference

See MultiSafepay Docs – API reference.

License

MIT License

About

A .Net wrapper for the MultiSafepay payments API. Provides support for all payment methods, Pay After Delivery and Fast Checkout.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages