Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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

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