Creating a Custom Payment Gateway
This document explains creating custom a payment gateway that's different than the existing ones in the Payment Module.
Creating Core Operations
Create MyPaymentGateway.cs and implement
IPaymentGateway
You should configure your gateway in
PaymentOptions
Creating the UI
There are 2 types of pages that are supported by default. You can define a pre-payment page and post-payment page.
Create PreCheckout.cshtml and PreCheckout.cshtml.cs
Create PostCheckout.cshtml and PostCheckout.cshtml.cs
Configure your pages in
PaymentWebOptions
Your custom gateway will be listed in the public payment gateway selection page. If there is only one payment gateway, this page will be skipped.