Skip to main content
The update method creates or updates a PaymentMethod object. To encapsulate a specific payment method for a customer, you must specify the payment type in the object’s type attribute, and then populate the payment details (specific to the payment type) in a PaymentMethodType-specific subobject. For example, if you set type to PayPal, construct a PayPal object and set it in the PaymentMethod object’s PayPal attribute. Note: The customer’s Account must exist before any Hosted Page related call references that Account. This call supports a flag that may be set to validate the payment method. Subscribe uses either 0or0 or 1 (or other currency) for the amount, depending on the payment method type, credit card type, and payment processor for the validation transaction. If the validation amount is not $0, Subscribe might later void this transaction. Note: Subscribe does not support validation for PayPal or Merchant Accepted payment method types. In case of the credit-card payment method, you can screen the card for fraud risk when creating the PaymentMethod object by specifying a chargeback probability score (also called risk score) that is acceptable to you. Subscribe scores the payment method for fraud risk by examining the billing address, the BIN (the first six digits of the card’s account number), the previous chargebacks on transactions conducted with this card, and other criteria. For details, see the Transaction.score method. If Subscribe evaluates the risk score for the payment method to be higher than your acceptable score, the creation process fails. If validate is set to true, and validation fails, the PaymentMethod object is not created or updated. The following table describes the validation process for the various payment methods.

Input

srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain a method call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call. Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response. PaymentMethod: the PaymentMethod object to create or update. In case of an update, you can identify this object with either its VID or your payment method ID (merchantPaymentMethodId). validate: a Boolean flag that, if set to true, causes this method to validate the PaymentMethod object first before creating or updating.
  • When validate is true, the AVS and CVN policies (or, in their absence, the default evaluation policy) are used to determine the status of the validation. If validation fails, the PaymentMethod is not updated.
  • For more detail on AVS and CVN Return Codes, please work with your Vindicia Client Services representative.
minChargebackProbability: a number between 0 and 100 by which you specify your fraud risk score tolerance level. A chargeback probability (also called the risk-screening score or risk score) of 100 indicates that Subscribe is 100% certain that a transaction is fraudulent and will result in a chargeback. Specify your acceptable threshold for chargeback possibility with this parameter. If the score evaluates to be more than your tolerance level, the update call will fail. For risk score evaluation, you must specify the sourceIp parameter, described below, and full billing address containing city, state (district), and country for the payment method. replaceOnAllAutoBills: a Boolean flag that, if set to true, causes this method to propagate the updates to an existing payment method to all the AutoBill objects. This operation works only for those payment methods that are already associated with an Account object. The default is false, meaning that this method does not update any AutoBill objects. sourceIp: the customer IP address from which the customer specified details for this payment method. It must be specified if you want Subscribe to evaluate risk score for this payment method, that is, if you specify minChargebackProbability to be less than 100. replaceOnAllChildAutoBills: a Boolean flag that, if set to true, the update will propagate to the AutoBills belonging to children of this account. If replaceOnAllAutoBills is set to false, this flag is ignored. If replaceOnAllAutoBills is set to true and replaceOnAllChildAutoBills is set to true, this will affect only the parent account. ignoreAvsPolicy: a Boolean flag that, if set to true, will override the AVS policy, and update the PaymentMethod, regardless of the AVS return code. If set to false or null, (and if validate is set to true) the AVS return code will be used to determine whether to update the PaymentMethod. ignoreCvnPolicy: an optional Boolean flag that, if set to true, will override the CVN policy, and update the PaymentMethod, regardless of the CVN return code. If set to false or null, (and if validate is set to true) the CVN return code will be used to determine whether to update the PaymentMethod. enable3ds: Disable 3DS authentication flow for this transaction if false; if true or undefined, the 3DS authentication flow will be determined by the merchant option flag use3ds.

Output

return: an object of type Return that indicates the success or failure of the call. PaymentMethod: the PaymentMethod object that was created or updated. If the object was newly created, this output contains the object’s Vindicia-assigned ID in the VID attribute. Subscribe masks the account numbers in this object. created: a Boolean flag that, if set to true, indicates that this method has created a new PaymentMethod object. A false setting indicates that update has updated an existing PaymentMethod object, which occurs if a PaymentMethod object with the merchantPaymentMethodId or VID value specified in the input already exists in the Vindicia database. validated: a Boolean flag that, if set to true, indicates that the update method has successfully validated the underlying payment method. This is meaningful only if you turned the input validate flag on. score: the fraud risk score evaluated by Subscribe for this payment method. If you specified minChargebackProbability of less than 100, Subscribe evaluates the fraud risk score for this payment method. scoreCodes: an array of code numbers and corresponding explanatory text that explains the score evaluated by Subscribe. authStatus: a TransactionStatus object containing information received from the payment processor for the underlying validation transaction. This is available only if you chose to validate the payment method. initialTransaction: Validation Transaction.

Returns

In addition to those listed in The Return Object, this call returns:

Example

Parent topic:PaymentMethod Methods