Download the PHP package visualpay/sdk without Composer
On this page you can find all versions of the php package visualpay/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download visualpay/sdk
More information about visualpay/sdk
Files in visualpay/sdk
Download visualpay/sdk
More information about visualpay/sdk
Files in visualpay/sdk
Please rate this library. Is it a good library?
Informations about the package sdk
VisualPay PHP SDK
Official PHP client for the VisualPay Merchant API.
Repository: visualpay-php
Requirements
- PHP 8.1+
- Extensions:
curl,json
Install
From a local path (development):
Security notes
- API base URL is hardcoded to
https://visualpay.net(not configurable) to prevent host spoofing / MITM via custom endpoints. - All requests use HTTPS with TLS peer verification (
CURLOPT_SSL_VERIFYPEER/VERIFYHOST). - Redirects are disabled; only the
HTTPSprotocol is allowed. - Webhook tokens are compared with
hash_equals(timing-safe). - Optional
callback_urlvalues are rejected unless they usehttps://. - Keep your merchant API key and webhook secret on the server only — never expose them in browsers, mobile apps, or public repos.
- This SDK is for server-side use. It does not use cookies/sessions, so classic session hijacking / CSRF against the SDK itself do not apply; still protect your own app routes with your framework’s CSRF and auth controls.
Quick start
Webhooks
VisualPay POSTs JSON to your webhook_url with header token: {your webhook_api_key}.
Always confirm payment server-side via webhook or getTransactionStatus before fulfilling orders. Do not trust browser redirects alone.
Error handling
API surface
| Method | Endpoint |
|---|---|
listCurrencies() |
GET /api/v1/merchant/currencies/list |
createTransaction() |
POST /api/v1/merchant/transaction/create |
getTransactionStatus() |
GET /api/v1/merchant/transaction/status |
cancelTransaction() |
POST /api/v1/merchant/transaction/cancel |
recheckTransaction() |
GET /api/v1/merchant/transaction/recheck |
listTransactions() |
GET /api/v1/merchant/transaction/list |
listWithdrawals() |
GET /api/v1/merchant/withdrawals/list |
Full HTTP reference: https://visualpay.net/api-docs
Publish checklist (Packagist)
- Push this repo to GitHub as
visualpay/visualpay-php. - Tag a release:
git tag v1.0.0 && git push --tags. - Submit the GitHub URL on packagist.org (package name
visualpay/sdk). - Enable Packagist GitHub Service / webhook for auto-updates.
- Verify:
composer require visualpay/sdk:^1.0.
Development
License
MIT — see LICENSE.
All versions of sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package visualpay/sdk contains the following files
Loading the files please wait ...