DeleteCustomerPaymentMethodProfile

Description

This method is used to delete a specific payment method stored for a particular customer.

This method requires the use of the customerToken, a unique customer number assigned by the gateway. If you have lost or cannot remember the customer's customerToken, use the
GetCustomerToken method to find the correct customerToken.

Syntax

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

Arguments

TypeNameDescription
SecurityTokensecurityTokenMerchant security token: used to identify merchant and validate transaction. (required)
stringcustomerTokenUnique customer token assigned by the gateway. (required)
stringpaymentMethodIdID of payment method. (required)

Return Value

boolReturns true if payment method is updated successfully. If this fails, an exception will be thrown.

Examples

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:DeleteCustomerPaymentMethodProfile>
         <ebiz:securityToken>
            <ebiz:SecurityId>********-2902-4a3e-86f1-********</ebiz:SecurityId>
            <ebiz:UserId/>
            <ebiz:Password/>
         </ebiz:securityToken>
         <ebiz:customerToken>60937939</ebiz:customerToken>
         <ebiz:paymentMethodId>122</ebiz:paymentMethodId>
      </ebiz:DeleteCustomerPaymentMethodProfile>
   </soapenv:Body>
</soapenv:Envelope>