Skip to content

About

Official PayCow PHP SDK

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayCow PHP SDK

Server-side PHP client for the PayCow non-custodial USDT payment API.

Requirements

  • PHP 7.4 or newer
  • cURL, JSON, and Hash extensions
  • PayCow merchant API key and secret

Installation

Download and extract the SDK archive into your application, then load the included autoloader.

require_once __DIR__ . '/paycow-php-sdk/autoload.php';

Usage

use PayCow\PayCowClient;

$paycow = new PayCowClient([
    'api_key' => getenv('PAYCOW_API_KEY'),
    'api_secret' => getenv('PAYCOW_API_SECRET'),
]);

$payment = $paycow->payments()->create([
    'userId' => 'customer-2048',
    'amount' => '50.00',
    'network' => 'TRC20',
    'idempotencyKey' => 'order-2048-001',
]);

echo $payment->getPaymentUrl();

See https://paycow.net/docs/sdk for the complete reference.

About

Official PayCow PHP SDK

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages