Skip to content

A .net 4.0 implementation of the e24PaymentPipe ecommerce payment gateway

License

Notifications You must be signed in to change notification settings

pfalabella/e24PaymentPipe.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e24PaymentPipe

A .net 4.0 implementation of the e24PaymentPipe Payment Gateway that is used by many payment gateway providers.

Quick start

var paymentServer = new PaymentServerUrlBuilder("bankserver.example.com","/context", UseSSL.on, 443);
Uri paymentServerUrl = paymentServer.ToUrl();

var init=new PaymentInitMessage(
    id: "yourId",
    password: "yourPassword",
    action: RequiredAction.Authorization,
    amount: 5.30,
    language: RequiredLanguage.ITA,
    responseURL: new Uri("http://www.example.com/TransactionOK.htm"),
    errorURL: new Uri("http://www.example.com/TransactionKO.htm"),
    trackId: new Guid().ToString(),
    currency: 978     
    );

var pipe = new PaymentPipe(paymentServerUrl);
PaymentDetails paymentdetails=null;
try 
{
    paymentdetails = pipe.performPaymentInitialization(init);
}
catch(BadResponseFromWebServiceException ex)
{
    Console.WriteLine("Error! AttemptedUrl:", ex.AttemptedUrl);
    Console.WriteLine("Error! AttemptedParameters:", ex.AttemptedParams);				
}

Console.WriteLine("paymentID: {0}", paymentdetails.paymentId);
Console.WriteLine("paymentpage: {0}", paymentdetails.paymentPage);

License

This software is released under the MIT License (see the LICENSE file)

About

A .net 4.0 implementation of the e24PaymentPipe ecommerce payment gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages