SetDefaultCustomerPaymentMethodProfile

Set a existing payment method as default for an existing customer.

Description

This method make a specific payment method the default for a customer.

Syntax

bool SetDefaultCustomerPaymentMethodProfile( SecurityToken securityToken, string customerToken, string paymentMethodId)

Arguments

Type

Name

Description

SecurityToken

securityToken

Merchant security token: used to identify merchant and validate transaction. (required)

string

customerToken

Unique customer token assigned by the gateway. (required)

string

paymentMethodId

Unique payment method ID assigned by the gateway. (required)

Return Value

boolean

Returns confirmation of that payment method was set to default. If this fails, an exception will be thrown.