The Basics Of Setting Up A Payment Gateway In Episerver Commerce

In this tutorial, you will learn the basics of setting up a new payment gateway with Episerver commerce.  This tutorial won't go into any specific payment provider details.  Each payment provider that I've worked with has been drastically different.  

The aim of this guide is to help you get an understanding of the type of tasks that are required. This guide won't show things like code-first for registering a payment provider with Episerver.

Creating A Payment Gateway

You will need to add the code that talks to the payment provider within a custom payment gateway. I suggest that for each provider you need to integrate with, you create a sperate class library.

    public class MyCustomGateway : IPaymentGateway
        public IDictionary<string, string> Settings { get; set; }

        public bool ProcessPayment(Payment payment, ref string message)
            return true;

Within the library, you will need to define a class, similar to this. Within the process method, you can add your logic to talk to your payment provider.

Registering A Payment Provider Within Episerver Commerce


submit to reddit

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

Back to top