Create the payment processor provider
To create a payment processor provider for the payment processor you must perform the following:
- Create a class to represent the payment processor provider.
In the folder for your custom payment processor, add a new class item.
- Make the class public.
Define the class to use the public access specifier.
- Implement the IPaymentProcessorProvider interface.
The IPaymentProcessorProvider interface requires the following members:
- Implement the required methods.
The methods described above should wrap the logic that calls the payment processor API. By default the SubmitTransaction method is called upon checkout. In this method you can can call any of the other methods depending on the settings.
Use the following code sample: