PHPackages                             faso-dev/visa-checkout-sdk - 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. faso-dev/visa-checkout-sdk

ActiveLibrary[Payment Processing](/categories/payments)

faso-dev/visa-checkout-sdk
==========================

A PHP SDK for the Visa Checkout API

v0.0.2(3y ago)342MITPHP

Since Jan 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/faso-dev/visa-checkout-sdk)[ Packagist](https://packagist.org/packages/faso-dev/visa-checkout-sdk)[ RSS](/packages/faso-dev-visa-checkout-sdk/feed)WikiDiscussions main Synced 1mo ago

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

Visa Checkout SDK
-----------------

[](#visa-checkout-sdk)

This is a PHP library for the Visa Checkout API. It allows you to integrate Visa Checkout into your PHP application and make payments using Visa cards.

### Requirements

[](#requirements)

- PHP 8.0 or later
- Composer
- Visa Checkout account
- Visa Checkout SDK account
- Visa Checkout SDK merchant ID
- Visa Checkout SDK API key
- Visa Checkout SDK shared secret
- Visa Checkout SDK API endpoint
- Visa Checkout SDK API version

### Installation

[](#installation)

To install the library, you can use Composer:

```
composer require faso-dev/visa-checkout-sdk
```

### Usage

[](#usage)

Here is an example of how to use the library to create a payment using a Visa card:

```
    use FasoDev\VisaCheckoutSdk\CardData;
    use FasoDev\VisaCheckoutSdk\Config;
    use FasoDev\VisaCheckoutSdk\Credentials;
    use FasoDev\VisaCheckoutSdk\PaymentException;
    use FasoDev\VisaCheckoutSdk\VisaPay;

    $config = Config::make(
        Credentials::make(
            'VCO_USER_1234567890',
            'VCO_PASS_1234567890',
        ),
    );

    $config->putUserAgent('Your user agent'); // Optional
    $config->putTimeout(30); // seconds, default is 30, optional
    $config->putConnectTimeout(30); // seconds, optional
    $config->putProxy('Your proxy'); // optional
    $config->putBaseUrl('Your base url'); // optional, but util if VISA change the base url
    $config->putCheckoutEndpoint('Your checkout endpoint'); // optional, but util if VISA change the checkout endpoint
    $config->putRequestHeaders(['Your request headers']);// optional

    // create a payable instance
    $payment = VisaPay::fromConfig($config);

    // create a visa card
    $visaCard = CardData::make(
        'visa',
        '4111111111111111',
        '12',
        '2025',
        '123',
        'John Doe',
    );
    // create a payment
	try {
		$transaction = (new CheckoutSdk($payment))->makePayment(
			100.00,
			'USD',
			$visaCard,
			'Payment description'
		);
		if ($transaction->successfull()) {
			// add transaction info to your database(id, status, amount, currency, description, user_id, etc.)
		} elseif ($transaction->declined()) {
			// retry payment or do something
		} else {
			// notify user or do something
		}
	} catch (PaymentException $e) {
		// handle exception
		echo $e->getMessage();
	}
```

### Testing

[](#testing)

To run the tests, you can use the following command:

```
composer test
```

### License

[](#license)

The MIT License (MIT).

#### Credits

[](#credits)

- [Faso Dev](https://github.com/faso-dev)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

1202d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f30387249ba011301439f329ef324e73d5269750c44c1265bf1a66496750028?d=identicon)[faso-dev](/maintainers/faso-dev)

---

Top Contributors

[![faso-dev](https://avatars.githubusercontent.com/u/40303326?v=4)](https://github.com/faso-dev "faso-dev (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/faso-dev-visa-checkout-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/faso-dev-visa-checkout-sdk/health.svg)](https://phpackages.com/packages/faso-dev-visa-checkout-sdk)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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