To create an offsite payment processor provider for the payment processor you must perform the following:
IOffsitePaymentProcessorProvider
IPaymentProcessorProvider
IPaymentResponse HandleOffsiteReturn(int orderNumber, HttpRequest request, PaymentMethod paymentMethod);
IPaymentResponse HandleOffsiteNotification(int orderNumber, HttpRequest request, PaymentMethod paymentMethod);
HandleOffsiteReturn
HandleOffsiteNotification
IPaymentResponse HandleOffsitePaymentExecution(int orderNumber, HttpRequest request, PaymentMethod paymentMethod);
Use the following code sample:
After you have implemented your provider class, depending on your custom provider, you may want to specify a return and redirect URL. You specify these in SubmitTransaction method. In this class, you can specify either of the following Sitefinity CMS properties:
The way you pass the properies in the SubmitTransaction method is also specified in your payment provender documentation.
EXAMPLE: postValues.Add("notificationURL", data.GatewayNotificationUrl);
In the above example, notificationURL is a property specified by the payment provider.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important