Skip to content

SuperDev0101/MultiSafepay

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:https://example.com/notify", "http:https://example.com/success", "http:https://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.

Support

Create an issue on this repository or email [email protected]

Contributions

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

API reference

See MultiSafepay Docs – API reference.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages