Newer Version Available
PaymentGatewayNotificationRequest Class
Namespace
Usage
When the payment gateway sends a notification for a payment request, the payments platform sends the notification request to the gateway adapter. If the notification payload contains an eventCode of CAPTURE, the adapter constructs a CaptureNotification. If the notification payload contains an eventCode of REFUND, the adapter constructs a ReferencedRefundNotification. If the notification payload contains eventCode of AUTHORISATION, the adapter constructs a GatewayNotificationResponse.
You can obtain a notification request from PaymentGatewayNotificationContext by invoking its getPaymentGatewayNotificationRequest method.
Example
1global commercepayments.GatewayNotificationResponse
2 processNotification(commercepayments.PaymentGatewayNotificationContext gatewayNotificationContext) {
3 commercepayments.PaymentGatewayNotificationRequest notificationRequest = gatewayNotificationContext.getPaymentGatewayNotificationRequest();
4}PaymentGatewayNotificationRequest Properties
The following are properties for PaymentGatewayNotificationRequest.
PaymentGatewayNotificationRequest Methods
The following are methods for PaymentGatewayNotificationRequest.