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 2mo ago

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 54% 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

3367d ago

Major Versions

v0.2.1 → v1.0.02017-02-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/10881a156b2ae4df5792c51572b8445ae8fdb378fa4afc99764ab53140d68bf3?d=identicon)[thelhc](/maintainers/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

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[freshbitsweb/laravel-google-analytics-4-measurement-protocol

A Laravel package to use Measurement Protocol for Google Analytics 4

20111.0k](/packages/freshbitsweb-laravel-google-analytics-4-measurement-protocol)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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