Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SecurionPay.Core.Tests
SecurionPay.Core
SecurionPay
SecurionPayTests
.gitignore
LICENSE
Nuget-Logo.png
README.md
SecurionPay.Core.sln
SecurionPay.sln
appveyor.yml
setup_integration_tests.ps1

README.md

SecurionPay .NET Library

Build status

If you don't already have SecurionPay account you can create it here.

Instalation

NuGet

To install SecurionPay, run the following command in the Package Manager Console

PM> Install-Package SecurionPay 

More info here

Manual

You can download the latest release from here.

Quick start example

SecurionPayGateway gateway = new SecurionPayGateway("sk_test_[YOUR_SECRET_KEY]");

ChargeRequest request = new ChargeRequest()
{
    Amount = 499,
    Currency = "EUR",
    Card = new CardRequest()
    {
        Number = "4242424242424242",
        ExpMonth = "11",
        ExpYear = "2022"
    }
};

try
{
    Charge charge = await gateway.CreateCharge(request);

    // do something with charge object - see https://securionpay.com/docs/api#charge-object
    string chargeId = charge.Id;

}
catch (SecurionPayException e)
{
    // handle error response - see https://securionpay.com/docs/api#error-object
    ErrorType errorType = e.Error.Type;
    ErrorCode? errorCode = e.Error.Code;
    string errorMessage = e.Error.Message;
}

Documentation

For further information, please refer to our official documentation at https://securionpay.com/docs.

You can’t perform that action at this time.