PHPackages                             thelhc/auth-net-client - 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. [API Development](/categories/api)
4. /
5. thelhc/auth-net-client

ActiveLibrary[API Development](/categories/api)

thelhc/auth-net-client
======================

An Authorize.net API client

v1.0.0(9y ago)0120PHPPHP ~5.6|~7.0

Since Feb 21Pushed 9y ago2 watchersCompare

[ Source](https://github.com/dieseljobs/auth-net-client)[ Packagist](https://packagist.org/packages/thelhc/auth-net-client)[ RSS](/packages/thelhc-auth-net-client/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (5)Used By (0)

auth-net-client
===============

[](#auth-net-client)

An Authorize.net API client

Installation
------------

[](#installation)

```
composer require thelhc/auth-net-client

```

Basic Usage
-----------

[](#basic-usage)

### New Profile

[](#new-profile)

```
$profile = new Profile([
    'merchant_customer_id' => rand(1000, 10000),
]);
$profile->create()

```

### New Profile with Payment Profile

[](#new-profile-with-payment-profile)

```
$profile = new Profile([
    'merchant_customer_id' => rand(1000, 10000),
]);
$paymentProfile = new PaymentProfile([
    'customerType' => 'business',
    'billTo' => [
        'firstName' => 'Aaron',
        'lastName' => 'Kaczmarek',
        'company' => 'WeaselJobs',
        'address' => '747 Main St',
        'city' => 'Westbrook',
        'state' => 'ME',
        'zip' => '04092',
        'phoneNumber' => '828-301-9460'
    ],
    'payment' => [
        'creditCard' => [
            'cardNumber' => '4007000000027',
            'expirationDate' => '2020-01',
        ]
    ]
]);
$profile->paymentProfiles()->add($paymentProfile);
$profile->create()

```

### Get Profile

[](#get-profile)

```
$profile = Profile::find("1810689705");

```

### Update Profile

[](#update-profile)

```
$profile = Profile::find("1810689705");
$attrs = [
    "email" => "aaronkazman@email.com",
    "description" => "aaron test #".rand(1000, 10000)
];
$profile->update($attrs);

```

### Delete Profile

[](#delete-profile)

```
$profile = Profile::find("1810720109");
$profile->delete();

```

### Create Payment Profile

[](#create-payment-profile)

```
$profile = Profile::find("1810689705");
$paymentProfile = new PaymentProfile([
    'customerType' => 'business',
    'billTo' => [
        'firstName' => 'Aaron',
        'lastName' => 'Kaczmarek',
        'company' => 'WeaselJobs #'.rand(1000, 10000),
        'address' => '747 Main St',
        'city' => 'Westbrook',
        'state' => 'ME',
        'zip' => '04092',
        'phoneNumber' => '828-301-9460'
    ],
    'payment' => [
        'creditCard' => [
            'cardNumber' => '4012888818888',
            'expirationDate' => '202'.rand(1, 9).'0'.rand(1, 9),
        ]
    ]
]);
$profile->paymentProfiles()->save($paymentProfile);

```

### Get Payment Profile

[](#get-payment-profile)

```
$payment_profile = PaymentProfile::find("1810689705", "1805383335");

```

or from collection

```
$profile = Profile::find("1810689705");
$payment_profile = $profile->paymentProfiles()->find("1805383335");

```

### Update Payment Profile

[](#update-payment-profile)

```
$payment_profile = PaymentProfile::find("1810689705", "1805383335");
$attrs = [
    'billTo' => [
        'company' => 'WeaselJobs update #'.rand(1000, 10000),
    ]
];
$payment_profile->update($attrs);

```

### Delete Payment Profile

[](#delete-payment-profile)

```
$payment_profile = PaymentProfile::find("1810720112", "1805415477");
$payment_profile->delete();

```

### Validate Payment Profile

[](#validate-payment-profile)

```
$payment_profile = PaymentProfile::find("1810689705", "1805383335");
$payment_profile->validate();

```

### Get Payment Profile List

[](#get-payment-profile-list)

```
$params = [
    "searchType" => "cardsExpiringInMonth",
    "month" => "2020-01",
    "sorting" => [
        "orderBy" => "id",
        "orderDescending" => "false",
    ],
    "paging" => [
        "limit" => 1000,
        "offset" => 1
    ]
];
$payment_profiles = PaymentProfile::getList($params);

```

### Charge Payment payment\_profiles

[](#charge-payment-payment_profiles)

```
$payment_profile = PaymentProfile::find("1810689705", "1805383335");
$transaction = $payment_profile->charge("100.00", [
    "order" => [
        "invoiceNumber" => rand(1000, 10000),
        "description" => "Test payment profile charge"
    ]
]);

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

4

Last Release

3414d ago

Major Versions

v0.2.1 → v1.0.02017-02-24

### Community

Maintainers

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

---

Top Contributors

[![aaronkaz](https://avatars.githubusercontent.com/u/1431155?v=4)](https://github.com/aaronkaz "aaronkaz (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thelhc-auth-net-client/health.svg)

```
[![Health](https://phpackages.com/badges/thelhc-auth-net-client/health.svg)](https://phpackages.com/packages/thelhc-auth-net-client)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M123](/packages/roots-acorn)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[illuminate/console

The Illuminate Console package.

13046.0M6.3k](/packages/illuminate-console)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)

PHPackages © 2026

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