Payments - Credit / Debit Cards

A set of API endpoints that allow you to initiate, settle, and modify credit/debit card payments on the QorCommerce payments orchestration platform.

📘

Note:

  1. To simplify your development and have consistency across different Purchase requests - all Purchase API calls can also be reached at the following endpoint with any combination of the required Purchase... sale parameters :

https://USER.TEST_API_URL/v3/payment/sale/

  1. The Payment endpoints (sale, authorization and recurring) demonstrate the required parameters for processing a specific type of transaction. In practice, you may need to combine parameters across examples to match your use case. For instance, you can submit an authorization request with a token while also including 3DS/3RI fields for recurring payments.

All available parameters

The following are all the available parameters to contruct a purchase with a credit / debit card. The pages that follow demonstrate required parameters to specific use cases:

parameterdescription
midthe merchant id assigned by USER.COMPANY_NAME or your merchant service provider (MSP)
tidterminal id for processing (use as a reference, but required for MarketPlace transactions)
toptType Of Payment Transaction - set a value to simply tag and/or route a transaction to a pre-defined provider.
reference_idA reference id that will be echo'd back in the message response.
amountthe total amount to process
service_chargethe amount of the total sum of this transaction that is made up of the service_charge
cardfullnamethe name printed or embossed on the front of the credit card
creditcardthe credit card number
monththe card expiration month
yearthe card expiration year
cvvthe card verification value
ticketPOS ticket {object} (USER.CP_PRODUCT_NAME) - (see ticket object parameters below)
baddressthe card billing street address
baddress2the card billing street 2 address
bcitythe card billing city name
bstatethe card billing state code
bzipthe card billing zip code
bcountrythe card billing country code
default: US
currencyThe currency to process. Defaults to USD if no value provided
invoiceidthe merchant invoice id associated with the sale
orderidunique merchant order tracking number
ipaddressThe IP address of the client or server sending the request
cfirstnamethe customer first name
clastnamethe customer last name
cemailthe customer email address
cphonethe customer phone number
cwebaddressthe customer website
total_taxthe total tax amount applied to the sale
purchase_orderthe purchase order associated with this sale
shipping_amountthe total shipping amount applied to the sale
shipping_zipif items shipped or delivered, the shipping zip code
shipping_countryif items shipped or delivered, the shipping country code
line_itemsan array of item objects sold (see line_item object parameters below)
risk_scorerisk score associated to this transaction (*if you are using a risk prevention system)
is_initialfirst transaction in a recurring or installment plan
is_recurringis this a recurring transaction (0 or 1)
default = 0
first_trxnoriginal transaction ID associated with the initial payment of a subscription or installment plan
CAVVThe 3DS/3RI Cardholder Authentication Verification Value (MasterCard's UCAF value)
Must be 28-32 chars. in length
ECIFlagProvide the Electronic Commerce Indicator from the 3DS/3RI service
XID3DS/3RI Transaction Identifier
store_cardif true will store card in the USER.COMPANY_NAME Secure Vault and return a card token
send_rcptsend the customer a receipt to cemail
metadataa set of key-value pairs that you can attach to a payment. This can be useful for storing additional information about the payment in a structured format.

The ticket object array requires the following parameters

parameterdescriptionrequired
terminal_idthe POS terminal idYes
clerk_numberunique employee idYes
check_numberthe POS ticket IDYes
payment_idthe payment ID from the POSYes

Level III (3) data - each object in the line_items array requires the following parameters

parameterdescriptionrequired
namethe name of the itemYes
descriptiona description of the itemNo
unit_pricethe price per unit for the itemYes
units_soldthe number of item units soldYes
unit_measurementthe unit of measurementNo
total_amountthe total amount of the item sale which should equal unit_price x units_sold + any taxes, discounts and/or feesYes
uccthe item Universal Commercial CodeNo
upcthe item Universal Product CodeNo