PaymentGatewayAsyncAdapter Interface
Implement the interface to allow customers to process payments asynchronously.
Implementing an asynchronous adapter also requires the processNotification method from the GatewayNotificationResponse class.
The following are methods for PaymentGatewayAsyncAdapter.
-
processNotification(paymentGatewayNotificationContext)
Entry point for processing notifications from payment gateways.
Entry point for processing notifications from payment gateways.
global commercepayments.GatewayNotificationResponse processNotification(commercepayments.PaymentGatewayNotificationContext var1)
- paymentGatewayNotificationContext: Type: PaymentGatewayNotificationContext The
PaymentGatewayNotificationContextobject wraps all the information related to a gateway notification.
Type: GatewayNotificationResponse
When the payment gateway sends a notification to the payments platform, the platform responds with a GatewayNotificationResponse indicating whether the platform succeeded or failed at receiving the notification.
This is a sample implementation of the commercepayments.PaymentGatewayAsyncAdapter interface.