PaymentMethodDetailsResponse Class

This class contains the details about the payment method.

Namespace

CommercePayments

Example

commercepayments.AlternativePaymentMethodResponse alternativePaymentMethodResponse = new commercepayments.AlternativePaymentMethodResponse();
alternativePaymentMethodResponse.setEmail('alternativePaymentMethod');
alternativePaymentMethodResponse.setEmail('foo@foo.com');
alternativePaymentMethodResponse.setGatewayToken('NMoPoIOnTZSaRaWcV7gUUXe');
alternativePaymentMethodResponse.setGatewayTokenDetails('gateway token details');
commercepayments.PaymentMethodDetailsResponse response = new commercepayments.PaymentMethodDetailsResponse();
response.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

Return Value

Type: void

setCardPaymentMethod(cardPaymentMethod)

Sets the details about the card payment method.

Signature

public void setCardPaymentMethod(commercepayments.CardPaymentMethodResponse cardPaymentMethod)

Parameters

Return Value

Type: void