Configure CardConnect

Last updated 8 months ago

You can configure CardConnect programatically using the /gateways/card_connect endpoint.

The CardConnect Gateway Object

Attributes
Sample Object

Attribute

Type

Description

type

string

Always gateway

name

string

The display name of the gateway

merchant_id

string

Your CardConnect Merchant ID

username

string

Your CardConnect username

password

string

Your CardConnect password

slug

string

A unique slug for this gateway

enabled

boolean

true or false that will enable the gateway

test

boolean

true or false to enable test transactions

{
"data": {
"type": "gateway"
"name": "CardConnect",
"merchant_id": "xxx",
"username": "xxx"
"password": "xxx",
"slug": "cardconnect",
"enabled": true,
"test": false
}
}

put
Update CardConnect settings

https://api.moltin.com
/v2/gateways/card_connect
Request
Response
Headers
Authorization
required
string
The Bearer token to grant access to the API
Body Parameters
test
optional
boolean
Indicates whether test transactions are enabled
slug
required
string
A unique slug for this gateway
name
required
string
The display name of the gateway
type
required
string
Always gateway
username
optional
string
Your CardConnect username
password
optional
string
Your CardConnect password
merchant_id
optional
string
Your CardConnect Merchant ID
enabled
optional
boolean
true, false
200: OK
{
"data": {
"type": "gateway",
"name": "CardConnect",
"merchant_id": "",
"username": ""
"password": "",
"slug": "cardconnect",
"test": false,
"enabled": false
}
}
cURL
curl -X PUT https://api.moltin.com/v2/gateways/card_connect \
-H "Authorization: Bearer XXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"type": "gateway",
"name": "CardConnect",
"merchant_id": "",
"username": ""
"password": "",
"slug": "cardconnect",
"test": false,
"enabled": false
}
}'