Skip to main content

Payment Method Tokenization


Payment Method Tokenization is the exchange of payment data for a token representation provided by the payment gateway for PCI Compliance. This is an initial step in the payments lifecycle.


There is one prerequisite resource that must be created before creating a Payment Method Tokenization.

           Object           Definition
Payment GatewayPayment Gateways track all the configuration settings that Chargent will use to proccess the payments and send requests to the gateway.

Create Payment Method

Flow Action

Action NameLabelCategory
apex-ChargentBase_FlowPMTokenizationChargent Payment Methods TokenizationChargent Payments

Flow Method

Method NameInputInput TypeOutputOutput Type

PMInput Properties

nickNameStringThe customer facing alternate name for the payment method.
companyNameStringThe billing company name.
cityStringThe billing address city.
countryStringThe billing address country.
postalcodeStringThe billing address postal code.
stateStringThe billing address state.
streetStringThe billing address street.
phoneStringThe billing contact phone.
emailStringThe billing contact email.
paymentMethodStringThe type of payment method Credit Card or Bank Account.
paymentGatewayIdStringObject ID for the payment gateway record.
multipleTokenizationBooleanTokenize across one or more than one gateways.
paymentGatewayIdsStringComma separated list of payment gateway IDs.
cardHolderFirstNameStringThe credit card holder first name.
cardHolderLastNameStringThe credit card holder last name.
cardNumberStringThe credit card number.
cardTypeStringThe credit card type: Visa, Mastercard, Discover, American Express, MC Eurocard, UK Maestro, JCB Card, or Diners Card.
cvvStringThe card security code.
expiryMonthStringThe card expiration month.
expiryYearStringThe card expiration year.
bankAccountHolderFirstNameStringThe bank account holder first name.
bankAccountHolderLastNameStringThe bank account holder last name.
bankInstitutionNameStringThe bank institution name.
routingNumberStringThe bank account routing number.
bankAccountNumberStringThe bank account number.
bankAccountTypeStringThe type of the bank account: Checking, Savings, or Business Checking.
headlessBooleanSend the request to the payment gateway and do not store the results in Salesforce.

PMOutput Properties

statusBooleanSuccess or failure status for the payment method tokenization action.
messageStringThe detailed message for the result of the payment method tokenization action.
paymentMethodIdStringThe payment method ID that was created.
tokensListStringComma seperated list of tokens created for each of the gateways.