Newer Version Available

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

PaymentMethodDetailsResponse Class

This class contains the details about the payment method.

Namespace

CommercePayments

Example

1commercepayments.AlternativePaymentMethodResponse alternativePaymentMethodResponse = new commercepayments.AlternativePaymentMethodResponse();
2alternativePaymentMethodResponse.setEmail('alternativePaymentMethod');
3alternativePaymentMethodResponse.setEmail('foo@foo.com');
4alternativePaymentMethodResponse.setGatewayToken('NMoPoIOnTZSaRaWcV7gUUXe');
5alternativePaymentMethodResponse.setGatewayTokenDetails('gateway token details');
6commercepayments.PaymentMethodDetailsResponse response = new commercepayments.PaymentMethodDetailsResponse();
7response.setAlternativePaymentMethod(alternativePaymentMethodResponse);

PaymentMethodDetailsResponse Methods

The following are methods for PaymentMethodDetailsResponse.

setAlternativePaymentMethod(alternativePaymentMethod)

Sets the alternative payment method details.

Signature

public void setAlternativePaymentMethod(commercepayments.AlternativePaymentMethodResponse alternativePaymentMethod)

Parameters

alternativePaymentMethod
Type: CommercePayments.AlternativePaymentMethodResponse
Details of the alternative payment method.

Return Value

Type: void

setCardPaymentMethod(cardPaymentMethod)

Sets the details about the card payment method.

Signature

public void setCardPaymentMethod(commercepayments.CardPaymentMethodResponse cardPaymentMethod)

Parameters

cardPaymentMethod
Type: CommercePayments.CardPaymentMethodResponse
Details about the card payment method.

Return Value

Type: void