PaymentGatewayNotificationRequest クラス
名前空間
使用方法
支払ゲートウェイが支払要求の通知を送信すると、支払プラットフォームは通知要求をゲートウェイアダプターに送信します。通知ペイロードに CAPTURE の eventCode が含まれている場合、アダプターは CaptureNotification を作成します。通知ペイロードに REFUND の eventCode が含まれている場合、アダプターは ReferencedRefundNotification を作成します。通知ペイロードに AUTHORISATION の eventCode が含まれている場合、アダプターは GatewayNotificationResponse を作成します。
その getPaymentGatewayNotificationRequest メソッドを呼び出すことで、PaymentGatewayNotificationContext から通知要求を取得できます。
例
1global commercepayments.GatewayNotificationResponse
2 processNotification(commercepayments.PaymentGatewayNotificationContext gatewayNotificationContext) {
3 commercepayments.PaymentGatewayNotificationRequest notificationRequest = gatewayNotificationContext.getPaymentGatewayNotificationRequest();
4}