Newer Version Available
PaymentGatewayNotificationContext Class
Namespace
Usage
This class is used with asynchronous payments. It wraps all of the information related to a notification from the payment gateway. The payments platform provides its context to the payment gateway adapters.
The constructor of this class takes no arguments. For example:
CommercePayments.PaymentGatewayNotificationContext pgnc = new CommercePayments.PaymentGatewayNotificationContext();Example
1global commercepayments.GatewayNotificationResponse
2processNotification(commercepayments.PaymentGatewayNotificationContext gatewayNotificationContext) {
3commercepayments.PaymentGatewayNotificationRequest notificationRequest = gatewayNotificationContext.getPaymentGatewayNotificationRequest();
4}