Skip to content

Draft Credit Card

Draft a credit card transaction for card payments.

draftCreditCard

transactions

ParameterTypeRequiredDefaultDescription
Merchant IDstringYes-The merchant identifier
E-Commerce IndicatoroptionsYes-Transaction type indicator
Account TypeoptionsYes-Type of credit card
Profile IDstringYes-The profile identifier
NamestringYes-Customer identifier/name
AmountstringYes-The transaction amount
ValueDescription
EE-commerce transaction
RRecurring transaction
TTelephone order
ValueDescription
VISAVisa card
MCMastercard
AMEXAmerican Express
DISCDiscover
{
"respstat": "A",
"respcode": "00",
"resptext": "Approval",
"retref": "123456789012",
"authcode": "ABC123",
"merchid": "MERCH001",
"amount": "150.00",
"accttype": "VISA"
}
{
"error": "Invalid merchant ID"
}
FieldTypeDescription
respstatstringResponse status (A=Approved, C=Declined, B=Retry)
respcodestringResponse code
resptextstringResponse description
retrefstringTransaction reference number
authcodestringAuthorization code
merchidstringMerchant ID
amountstringTransaction amount
accttypestringCard type used
  • Missing API URL: Fiserv credential is missing apiUrl
  • Invalid Merchant ID: Merchant ID not found or invalid
  • Invalid Profile: Profile ID not found
  • Card Declined: Check respstat and respcode for details
  • Invalid Card Type: Account type not supported