PaymentGatewayNotificationRequest Class
Contains the notification request data from the gateway.
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.
The following are properties for PaymentGatewayNotificationRequest.
-
Body of the notification request sent by the payment gateway.
Body of the notification request sent by the payment gateway.
global Blob requestBody {get; set;}
Type: Blob
The following are methods for PaymentGatewayNotificationRequest.
-
Gets HTTP headers from the notification request sent by the payment gateway.
-
Stores the notification request body information from the payment gateway’s notification request.
Gets HTTP headers from the notification request sent by the payment gateway.
global Map<String,String> getHeaders()
Type: Map<String,String>
Stores the notification request body information from the payment gateway’s notification request.
global Blob getRequestBody()
Type: Blob