Newer Version Available

This content describes an older version of this product. View Latest

PaymentsHttp Class

Makes an HTTP request to start the interaction with the payment gateway.

Namespace

CommercePayments

Usage

You must specify the CommercePayments namespace when creating an instance of this class. The constructor of this class takes no arguments. For example:

CommercePayments.PaymentsHttp payhttp = new CommercePayments.PaymentsHttp();

PaymentsHttp Methods

The following are methods for PaymentsHttp. All methods are instance methods.

send(Request)

Sends an HttpRequest and returns the response.

Signature

global HttpResponse send(HttpRequest request)

Parameters

request
Type: System.HttpRequest

Return Value

Type: System.HttpResponse

PaymentsHttp Constructors

The following are constructors for PaymentsHttp.

PaymentsHttp()

Initiates an HTTP request and response.

Signature

global PaymentsHttp()