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 had drastically different implementation details. Instead, I will show you ground zero. This simplest thing you need to do! 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 payment provider that you want to integrate with, you create a separate class library. The code to register a payment provider is simple enough:

To create a new payment gateway, create a class similar to the one above. Within the process method, you can add your logic to talk to your payment provider, pass your authentication tokens and configurations. More information about payment providers can be found here. Happy Coding 🤘