This class contains the details about the payment method.
Namespace
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
- 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