Note: Throughout this documentation, we will refer to the payment gateway we are implementing as CustomPayment. This is simply a placeholder name. When integrating a specific payment gateway, replace CustomPayment with the name of the gateway you are working with.
To begin, download the demo plugin CustomPayment. This plugin serves as a reference structure that you can update with your own payment gateway’s configuration.
File Structure of the Demo Plugin
Once you’ve downloaded the plugin, you’ll notice the following file structure:
You’ll modify the files within the custompayment
directory to suit the specific gateway you’re integrating.