---
schema_version: "1"
id: 83f3c36905a194c0c317597a14d79b0acf0afec1596545ac6f5de34de8e5425d
title: PaymentGatewayAdapter Interface
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_interface_commercepayments_PaymentGatewayAdapter.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_commercepayments_PaymentGatewayAdapter.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 050a0ebef61b486731633f3076651b947dcb7643664bb2f9136d8c89e0a26e98
description: PaymentGatewayAdapters can implement this interface in order to process requests.The entry point for processing payment requests. Returns the response from the payment gateway.
---
# PaymentGatewayAdapter Interface

PaymentGatewayAdapters can implement this interface in order to process requests.

## Namespace

[CommercePayments](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_commercepayments.htm "Use the CommercePayments namespace to provide a safe and customizable platform for managing customer payments and refunds.")

- **[PaymentGatewayAdapter Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_commercepayments_PaymentGatewayAdapter.htm#apex_commerce_payments_PaymentGatewayAdapter_methods)**

## PaymentGatewayAdapter Methods

The following are methods for PaymentGatewayAdapter.

- **[processRequest(var1)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_commercepayments_PaymentGatewayAdapter.htm#apex_commercepayments_PaymentGatewayAdapter_processRequest)**  
    The entry point for processing payment requests. Returns the response from the payment gateway.

### processRequest(var1)

The entry point for processing payment requests. Returns the response from the payment gateway.

#### Signature

global commercepayments.GatewayResponse processRequest(commercepayments.PaymentGatewayContext var1)

#### Parameters

- **var1**: Type: [commercepayments.PaymentGatewayContext](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_class_commercepayments_PaymentGatewayContext.htm#apex_class_commerce_payments_PaymentGatewayContext) You can retrieve the request type and the request from the Context object.

#### Return Value

Type: commercepayments.GatewayResponse

The response from the payment gateway.