Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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.