Download the PHP package sdpayhub/laravel-payzy without Composer

On this page you can find all versions of the php package sdpayhub/laravel-payzy. 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 laravel-payzy

Payzy

Latest Version on Packagist Total Downloads CI

One simple API for Laravel payments. Use Razorpay, Stripe, PayPal, Paytm, PhonePe, or Authorize.net without learning six different SDKs.

Why Payzy?

What you get Why it matters
Same response shape on every gateway Switch from Razorpay to Stripe by changing one string
Built-in webhook verification Protects you from fake payment callbacks
Replay protection Same webhook cannot be reused to fake a payment
Idempotency keys Retries do not create duplicate charges
Secrets never logged API keys are masked automatically
Typed exceptions Catch payment errors clearly, not generic \Exception

Requirements

Install (3 steps)

1. Install the package

2. Publish the config

3. Add your keys to .env

Use sandbox keys while testing. Never commit .env.

First payment (copy & paste)

Important: amount format

Pass amounts in smallest currency units:

Currency Example Meaning
INR 1000 ₹10.00
USD 1000 $10.00

Switch gateway

Only change the gateway name. The rest of your code stays the same.

Common operations

Every method returns the same PaymentResponse object:

Webhooks (important)

Payzy registers this route for you:

Examples:

Setup checklist

  1. Put the URL in your gateway dashboard (Razorpay / Stripe / etc.).
  2. Put the webhook secret in .env (RAZORPAY_WEBHOOK_SECRET, STRIPE_WEBHOOK_SECRET, …).
  3. Run a queue worker so webhooks stay fast:

Payzy will:

  1. Verify the signature
  2. Reject old or repeated events (replay protection)
  3. Queue the work and return 202 Accepted

Avoid duplicate charges

Always send an idempotency key for checkout / create / refund calls:

If the same key is reused with a different payload, Payzy throws IdempotencyConflictException.

Cache note

Payzy stores idempotency results in Laravel’s cache. On a fresh Laravel app, prefer:

If you use CACHE_STORE=database, run migrations first so the cache table exists. Otherwise create/refund with an explicit idempotency key will fail with a clear configuration error.

Listen for events

Useful events:

Handle errors

Supported gateways

Gateway Payments Refunds Webhooks Customers Subscriptions
Razorpay Yes Yes Yes Yes Yes
Stripe Yes Yes Yes Yes Yes
PayPal Yes Yes Yes Yes
Paytm Yes Yes Yes
PhonePe Yes Yes Yes
Authorize.net Yes Yes Yes

Extra .env keys

Security basics (please read)

  1. Keep all secrets in .env — never hardcode keys in PHP files.
  2. Use PAYZY_MODE=sandbox until you are ready for live traffic.
  3. Always configure webhook secrets and keep verification enabled.
  4. Serve webhook URLs over HTTPS only.
  5. Run php artisan queue:work in production so webhook handlers are queued.
  6. Do not disable SSL verification (Payzy never does this for you).

Report security issues privately — see SECURITY.md.

Testing this package

Packagist auto-update (maintainers)

If Packagist shows “This package is not auto-updated”, GitHub is not notifying Packagist on push. Fix it once:

  1. Open Packagist → your profile → Show API Token.
  2. On GitHub: Settings → Webhooks → Add webhook
    • Payload URL: https://packagist.org/api/github?username=YOUR_PACKAGIST_USERNAME
    • Content type: application/json
    • Secret: your Packagist API token
    • Events: Just the push event
  3. Back on the package page, click Update so tags and the README sync immediately.

After that, every push and tag appears on Packagist automatically (including the README below the install command).

Need more detail?

License

MIT — see LICENSE.


All versions of laravel-payzy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/events Version ^10.0|^11.0|^12.0
illuminate/log Version ^10.0|^11.0|^12.0
illuminate/cache Version ^10.0|^11.0|^12.0
illuminate/queue Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.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 sdpayhub/laravel-payzy contains the following files

Loading the files please wait ...