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
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