Download the PHP package tangentopay/tangentopay-php without Composer

On this page you can find all versions of the php package tangentopay/tangentopay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tangentopay-php

tangentopay-php

Official PHP SDK for the TangentoPay API — accept payments, issue refunds, manage wallets, and verify webhooks with a clean, fully-typed interface.

Packagist Version CI PHP 8.1+


Table of contents


Requirements


Installation


Quick start


Authentication

TangentoPay has two credential types:

Credential Where it goes Client to use
Service Key (pk_live_… / pk_test_…) X-Service-Key header ServiceClient
API Token (Bearer) Authorization: Bearer … MerchantClient

Never expose an API token in browser or mobile code. Use ServiceClient on the frontend and MerchantClient only on your server.

ServiceClient

MerchantClient

Obtain an API token programmatically:


Token expiry and refresh

Catch AuthenticationException and re-authenticate in place:


Test mode

Pass a pk_test_… service key to use Stripe test mode:

Test-mode sessions go through Stripe's sandbox and never move real money.


Resources

ServiceClient resources

Property Description
$service->checkout Create Stripe-hosted checkout sessions; poll payment status
$service->topups Collect money from a customer's MoMo account into the service wallet
$service->withdrawals Send money from the service wallet to a customer's MoMo account
$service->providerStatus Real-time health for MTN MoMo, Orange Money, and Stripe

MerchantClient resources

Property Description
$merchant->auth Login, OTP verification, profile, logout
$merchant->payments View and search your incoming payment history
$merchant->refunds Issue refunds on completed payments
$merchant->topups Top up your main wallet via card or MoMo
$merchant->payouts Send funds out (bank, MoMo, TP wallet, debit card)
$merchant->wallets Main and service wallet balances
$merchant->services View services; manage enabled payment methods per service
$merchant->customers Create and manage customer records
$merchant->analytics Payment summaries, revenue, and volume over time
$merchant->logs Per-service API request logs
$merchant->transfers Internal wallet transfer history
$merchant->providerStatus Real-time health for MTN MoMo, Orange Money, and Stripe

Note on service administration: Creating services, rotating API keys, updating webhooks, and other one-time setup tasks are done from the TangentoPay Dashboard. These operations are intentionally not exposed in the SDK.


Provider status

Check provider health before initiating any collection or disbursement — this lets you show users a clear error message instead of a silent payment failure.

Possible status values:

Value Meaning
"operational" Fully functional — proceed normally
"degraded" Partial outage — expect higher failure rates
"down" Provider unreachable — do not attempt payments

Currency and provider guide

Provider Supported currencies Notes
MTN Mobile Money XAF only Cameroon; USSD push via Fapshi. Min 100 XAF, max 500 000 XAF.
Orange Money XAF only Cameroon; USSD push via Fapshi. Min 100 XAF, max 500 000 XAF.
Stripe USD, EUR, GBP, and more Multi-currency card checkout and instant payouts.

When a customer pays via MoMo the transaction currency is XAF. When they pay via Stripe card the currency is whatever currency_code you pass to checkout->create().

Use $merchant->wallets->mainBalance() to get per-currency balances — the response includes a balances array showing only currencies with a non-zero funded amount, which you can use to build a currency-selector UI in your withdrawal flow.


Service wallet operations (B2B2C)

The service wallet is funded when customers pay through your service's checkout flow.


Payouts

Two-step flow: initiate → confirm.

Virtual card payout (USD, Instant Payout)

Bulk payout


Merchant wallet top-up


Payment methods


Environment configuration


Error handling


Webhook verification


Contributing

Pull requests are welcome. For major changes please open an issue first.


Security

Please report security vulnerabilities to [email protected] rather than opening a public issue.


License

MIT


All versions of tangentopay-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tangentopay/tangentopay-php contains the following files

Loading the files please wait ...