Skip to main content
Version: 1.27 (Current)

Make a payment with Credit Card

Audience: Citizen Developer

Skill Prerequisites: API Key Management, Tokens, Payment Gateway Basics

The Make a payment with Credit Card action integrates with Authorize.Net to process payments directly from your workflows. It supports both authorization and capture transactions, allowing you to collect payments securely using the customer’s credit card information.

Typical Use Cases

  • Charge a customer for an online purchase immediately after form submission.
  • Integrate payment collection into a registration or order process.
  • Programmatically handle on-approval, on-decline, on-error, or held-for-review outcomes in your workflow.
Action NameDescription
Make a payment with Electronic CheckProcess payments using eChecks instead of credit cards.
Add a Simple Checkout to a buttonGenerates a checkout button for single-click payments.

Input Parameter Reference

ParameterDescriptionSupports TokensDefaultRequired
API Login IDAPI Login ID and Transaction Key combo to authenticate with Authorize.NetYesemptyYes
Transaction KeyThe Authorize.Net transaction keyYesemptyYes
Go LiveEnable to send actual transaction to the live gateway (otherwise goes to sandbox)YesfalseNo
Payment descriptionA short description for the payment (can appear in receipts)YesemptyNo
Transaction's currencyThree-letter currency code (e.g. USD, EUR)YesemptyYes
Amount - total to payTotal charge amountYesemptyYes
Credit Card Transaction TypeType of transaction: AUTH_CAPTURE, AUTH_ONLY, etc.YesAUTH_CAPTURENo
Credit Card NumberCustomer’s credit card number (formatted as digits only)YesemptyYes
Credit Card CCV3- or 4-digit card security codeYesemptyYes
Expiration MonthTwo-digit expiration monthYesemptyYes
Expiration YearTwo-digit expiration yearYesemptyYes
First NameCardholder’s first nameYesemptyYes
Last NameCardholder’s last nameYesemptyYes
AddressCardholder’s billing addressYesemptyYes
CityBilling cityYesemptyYes
StateBilling state or provinceYesemptyYes
CountryBilling countryYesemptyYes
Postal CodeBilling postal/ZIP codeYesemptyYes
FieldsAdditional name-value pairs to pass to Authorize.Net as extended dataYesnoneNo
Output Authorize.Net Response Code Token NameWhere to store the Authorize.Net response codeYesemptyNo
Output Authorize.Net Response Reason Code Token NameWhere to store the Authorize.Net response reason codeYesemptyNo
Output Authorize.Net Response Reason Text Token NameWhere to store the Authorize.Net response reason textYesemptyNo
Output Authorize.Net Response Authorization Code Token NameWhere to store the Authorization code resultYesemptyNo
Output Authorize.Net Response Transaction ID Token NameWhere to store the transaction IDYesemptyNo
On ApprovedActions to execute when the payment is approvedAction ListnoneNo
On DeclinedActions to execute when the payment is declinedAction ListnoneNo
On ErrorActions to execute when an error occursAction ListnoneNo
On Held For ReviewActions to execute if payment is held for manual reviewAction ListnoneNo

Output Parameters Reference

ParameterDescription
Output Authorize.Net Response Code Token NameStores the primary response code from Authorize.Net
Output Authorize.Net Response Reason Code Token NameStores the reason code for the transaction result
Output Authorize.Net Response Reason Text Token NameStores the human-readable description of the result
Output Authorize.Net Response Authorization Code Token NameStores the approval code if transaction succeeded
Output Authorize.Net Response Transaction ID Token NameStores the unique transaction ID from Authorize.Net

Security

Warning:

  • Always ensure sensitive fields such as card numbers and transaction keys are stored and handled securely. Do not expose these to untrusted user inputs.
  • Use secure HTTPS endpoints and comply with PCI DSS standards for storing, processing, or transmitting credit card data.

Events

  • On Approved: Run a set of actions only when payment is successful.
  • On Declined: Handle scenarios such as displaying an error message or logging for failed payments.
  • On Error: Catch gateway or communication errors.
  • On Held For Review: Implement manual review or notification flows if payment is flagged by Authorize.Net.

Examples

1. Minimal Payment (Test Mode)

Process a $20 test payment using tokens filled from a form.

{
"Title": "Make a payment with Credit Card",
"ActionType": "Pay with Credit Card",
"Parameters": {
"AuthorizeNetAPILoginID": "[Settings:AuthorizeNetAPILoginID]",
"AuthorizeNetTransactionKey": "[Settings:AuthorizeNetTransactionKey]",
"AuthorizeNetLiveMode": false,
"AuthorizeNetTitle": "Online Purchase",
"AuthorizeNetCurrency": "USD",
"AuthorizeNetAmount": "20.00",
"AuthorizeNetTransactionType": "AUTH_CAPTURE",
"AuthorizeNetCardNumber": "[Form:CardNumber]",
"AuthorizeNetCCV": "[Form:CardCCV]",
"AuthorizeNetExpirationMonth": "[Form:CardExpMonth]",
"AuthorizeNetExpirationYear": "[Form:CardExpYear]",
"AuthorizeNetFirstName": "[Form:FirstName]",
"AuthorizeNetLastName": "[Form:LastName]",
"AuthorizeNetAddress": "[Form:Address]",
"AuthorizeNetCity": "[Form:City]",
"AuthorizeNetState": "[Form:State]",
"AuthorizeNetCountry": "[Form:Country]",
"AuthorizeNetPostalCode": "[Form:PostalCode]"
}
}

2. Capture Response in Tokens & Custom Workflow on Approval

Store key Authorize.Net output fields in tokens and run other actions if payment is approved.

{
"Title": "Make a payment with Credit Card",
"ActionType": "Pay with Credit Card",
"Parameters": {
"AuthorizeNetAPILoginID": "[Settings:AuthorizeNetAPILoginID]",
"AuthorizeNetTransactionKey": "[Settings:AuthorizeNetTransactionKey]",
"AuthorizeNetLiveMode": true,
"AuthorizeNetTitle": "Conference Ticket",
"AuthorizeNetCurrency": "USD",
"AuthorizeNetAmount": "[Form:TotalPrice]",
"AuthorizeNetTransactionType": "AUTH_CAPTURE",
"AuthorizeNetCardNumber": "[Form:CardNumber]",
"AuthorizeNetCCV": "[Form:CardCCV]",
"AuthorizeNetExpirationMonth": "[Form:ExpMonth]",
"AuthorizeNetExpirationYear": "[Form:ExpYear]",
"AuthorizeNetFirstName": "[Form:FirstName]",
"AuthorizeNetLastName": "[Form:LastName]",
"AuthorizeNetAddress": "[Form:Address]",
"AuthorizeNetCity": "[Form:City]",
"AuthorizeNetState": "[Form:State]",
"AuthorizeNetCountry": "[Form:Country]",
"AuthorizeNetPostalCode": "[Form:PostalCode]",
"AuthorizeNetResponseCodeTokenName": "ANet_ResponseCode",
"AuthorizeNetResponseReasonCodeTokenName": "ANet_ReasonCode",
"AuthorizeNetResponseReasonTextTokenName": "ANet_ReasonText",
"AuthorizeNetResponseAuthorizationCodeTokenName": "ANet_AuthCode",
"AuthorizeNetResponseTransactionIDTokenName": "ANet_TransactionID",
"OnApproved": [
{
"Title": "Display Success Message",
"ActionType": "DisplayMessage",
"Parameters": {
"Message": "Payment successful! Transaction ID: [ANet_TransactionID]"
}
}
],
"OnDeclined": [
{
"Title": "Display Declined",
"ActionType": "DisplayMessage",
"Parameters": {
"Message": "Payment declined: [ANet_ReasonText]"
}
}
],
"OnError": [
{
"Title": "Display Error",