PHPackages                             dewbud/cardconnect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. dewbud/cardconnect

ActiveLibrary[Payment Processing](/categories/payments)

dewbud/cardconnect
==================

PHP adapter for CardConnect CardPointe API

2.1.0(5y ago)1290.3k↓41.1%13[2 issues](https://github.com/Dewbud/CardConnect/issues)[2 PRs](https://github.com/Dewbud/CardConnect/pulls)MITPHPPHP ^7.3

Since Feb 15Pushed 1y ago3 watchersCompare

[ Source](https://github.com/Dewbud/CardConnect)[ Packagist](https://packagist.org/packages/dewbud/cardconnect)[ Docs](https://github.com/Dewbud/CardConnect)[ RSS](/packages/dewbud-cardconnect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (10)Used By (0)

PHP CardConnect Adapter
=======================

[](#php-cardconnect-adapter)

Initializing
------------

[](#initializing)

```
$merchant_id = '123456123456';
$user        = 'username';
$pass        = 'password';
$server      = 'https://sub.domain.tld:1111/';

$client = new CardPointe($merchant_id, $user, $pass, $server);
```

Testing Credentials
-------------------

[](#testing-credentials)

```
$boolean = $client->testAuth();
```

Validate Merchant ID
--------------------

[](#validate-merchant-id)

```
$boolean = $client->validateMerchantId();
```

Tweaks
------

[](#tweaks)

Responses are parsed and their amount fields are returned in cents `int`.

The client stores the last request made as an `array` `$client->last_request` which can be used to debug requests

Response Objects
----------------

[](#response-objects)

Responses are returned as objects and can be accessed as arrays.

```
$response = $client->inquire($retref);
$response->amount; // returns int
$response->toJSON(); // Returns JSON encoded string, accepts format codes (JSON_PRETTY_PRINT, etc)
$response->toArray(); // Returns array of attributes
```

Authorizing Transactions
------------------------

[](#authorizing-transactions)

```
$request = new AuthorizationRequest([
    'account' => '4242424242424242',
    'amount'  => '100',
    'expiry'  => '0120',
]);
$authorization_response = $client->authorize($request);
```

**You can also authorize and capture in the same request like so**

```
$request = new AuthorizationRequest([
    'account' => '4242424242424242',
    'amount'  => '100',
    'expiry'  => '0120',
    'capture' => 'Y', // OR 'capture' => true,
    'profile' => 'Y', // OR 'profile' => true,
]);
$capture_response = $client->authorize($request);
```

**You can also authorize and capture in the same request using a saved card with PROFILE\_ID/ACCOUNT\_ID like so**

```
$request = new AuthorizationRequest([
    'account' => '4242424242424242',
    'amount'  => '100',
    'expiry'  => '0120',
    'capture' => 'Y', // OR 'capture' => true,
    'profile' => "$profile_id/$account_id", // using a profile/account
]);
$capture_response = $client->authorize($request);
```

To view all available fields see [Authorization Request](https://developer.cardconnect.com/cardconnect-api#authorization-request)

All returned fields see [Authorization Response](https://developer.cardconnect.com/cardconnect-api#authorization-response)

Capturing Transactions
----------------------

[](#capturing-transactions)

```
$auth_retref = '123456654321';
$params = []; // optional
$capture_response = $client->capture($auth_retref, $params);
```

To view all available fields see [Capture Request](https://developer.cardconnect.com/cardconnect-api#capture-request)

All returned fields see [Capture Response](https://developer.cardconnect.com/cardconnect-api#capture-response)

Voiding Transactions
--------------------

[](#voiding-transactions)

```
$auth_retref = '123456654321';
$params = []; // optional
$void_response = $client->void($auth_retref, $params);
```

To view all available fields see [Void Request](https://developer.cardconnect.com/cardconnect-api#void-request)

All returned fields see [Void Response](https://developer.cardconnect.com/cardconnect-api#void-response)

Refunding Transactions
----------------------

[](#refunding-transactions)

```
$capture_retref = '123456654321';
$params = []; // optional
$void_response = $client->refund($capture_retref, $params);
```

To view all available fields see [Refund Request](https://developer.cardconnect.com/cardconnect-api#refund-request)

All returned fields see [Refund Response](https://developer.cardconnect.com/cardconnect-api#refund-response)

Transaction Status
------------------

[](#transaction-status)

```
$retref = '123456654321';
$inquire_response = $client->inquire($retref);
```

All returned fields see [Inquire Response](https://developer.cardconnect.com/cardconnect-api#inquire-response)

Settlement Status
-----------------

[](#settlement-status)

```
$date = '0118';
$settlements = $client->settleStat($date);
$first_settlement = $settlements[0];
```

All returned fields see [Settlement Response](https://developer.cardconnect.com/cardconnect-api#settlement-response)

Create/Update Profile
---------------------

[](#createupdate-profile)

```
// update a profile by providing 'profile' => $profile_id in the request
$request = [
    'defaultacct' => "Y",
    'account'     => "4444333322221111",
    'expiry'      => "0914",
    'name'        => "Test User",
    'address'     => "123 Test St",
    'city'        => "TestCity",
    'region'      => "TestState",
    'country'     => "US",
    'postal'      => "11111",
];
$res = $client->createProfile($request);
```

All returned fields see [Create/Update Profile Request](https://developer.cardconnect.com/cardconnect-api?lang=php#create-update-profile-response)

Get Profile
-----------

[](#get-profile)

```
$profile_id = '1023456789';
$account_id = null; // optional
$profile = $client->profile($profile_id, $account_id);
```

All returned fields see [Profile Response](https://developer.cardconnect.com/cardconnect-api?lang=php#get-profile-response)

Delete Profile
--------------

[](#delete-profile)

```
$profile_id = '1023456789';
$account_id = null; // optional
$profile = $client->deleteProfile($profile_id, $account_id);
```

All returned fields see [Delete Profile Response](https://developer.cardconnect.com/cardconnect-api?lang=php#delete-profile-response)

Tests
-----

[](#tests)

`composer test`

Note: small or large authorization/capture amounts don't seem to work with the test merchant credentials.

Future stuff
------------

[](#future-stuff)

Implement remains service endpoints

- Funding Service
- Signature Capture Service (probably never)
- Open Batch Service
- Close Batch Service
- BIN Service

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~180 days

Recently: every ~232 days

Total

7

Last Release

1929d ago

Major Versions

1.1.0 → 2.0.02020-06-20

PHP version history (3 changes)1.0.0PHP &gt;=5.5

2.0.0PHP ^7.2

2.1.0PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24578927?v=4)[JJ](/maintainers/Dewbud)[@Dewbud](https://github.com/Dewbud)

---

Top Contributors

[![Dewbud](https://avatars.githubusercontent.com/u/24578927?v=4)](https://github.com/Dewbud "Dewbud (18 commits)")[![rrpadilla](https://avatars.githubusercontent.com/u/6921286?v=4)](https://github.com/rrpadilla "rrpadilla (4 commits)")[![blazerunner44](https://avatars.githubusercontent.com/u/12058167?v=4)](https://github.com/blazerunner44 "blazerunner44 (1 commits)")[![lkagan](https://avatars.githubusercontent.com/u/7658537?v=4)](https://github.com/lkagan "lkagan (1 commits)")

---

Tags

cardconnectcardpointe

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/dewbud-cardconnect/health.svg)

```
[![Health](https://phpackages.com/badges/dewbud-cardconnect/health.svg)](https://phpackages.com/packages/dewbud-cardconnect)
```

###  Alternatives

[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
