Download the PHP package netipar/simplepay without Composer
On this page you can find all versions of the php package netipar/simplepay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package simplepay
SimplePay for Laravel
Modern Laravel package for SimplePay online payment integration. Start payments, handle IPN webhooks, manage card storage, process refunds, and more.
Based on the official SimplePay PHP SDK v2.1, rebuilt for Laravel with typed DTOs, Enums, Events, and full API coverage.
Quick Example
Requirements
- PHP 8.2+
- Laravel 11 or 12
- A SimplePay merchant account
Installation
Publish the config file:
Add your merchant credentials to .env:
Usage
Obtaining the Services
Access all services through the SimplePay facade:
Start a Payment
Two-Step Payment (Authorize + Finish)
Refund a Transaction
Query Transaction Status
Cancel a Transaction
Card Storage (OneClick Payments)
Recurring Payments
Apple Pay
EAM / Qvik Payment
Request to Pay (RTP)
IPN Webhook
The package automatically registers a POST /simplepay/ipn route with signature verification middleware. Listen to payment events in your application:
Available events (all receive IpnMessage DTO):
| Event | Trigger |
|---|---|
IpnReceived |
Every IPN notification |
PaymentSucceeded |
FINISHED status |
PaymentAuthorized |
AUTHORIZED (two-step) |
PaymentFailed |
NOTAUTHORIZED |
PaymentCancelled |
CANCELLED |
PaymentTimedOut |
TIMEOUT |
PaymentRefunded |
REFUND |
The IpnMessage DTO contains:
Back URL Handling
The package registers a GET /simplepay/back route. Customize the response by binding your own BackUrlResponse in AppServiceProvider:
Enums
Always use enum cases instead of raw strings:
Currency--HUF,EUR,USDPaymentMethod--CARD,WIRE,EAMPaymentStatus--INIT,FINISHED,AUTHORIZED,NOTAUTHORIZED,INPAYMENT,CANCELLED,TIMEOUT,INFRAUD,FRAUD,REFUND,REVERSEDBackEvent--SUCCESS,FAIL,CANCEL,TIMEOUTTransactionType--CIT(Customer Initiated),MIT(Merchant Initiated),REC(Recurring)ErrorCode-- 358+ error codes with Hungarian descriptions
Error Handling
The package throws SimplePayApiException when the SimplePay API returns error codes:
Configuration
Key .env variables:
Multi-currency support -- each currency has its own merchant credentials:
Logos and Assets
The package includes the official SimplePay merchant logo pack. Publish the assets:
This copies logos and pre-composed variations to public/vendor/simplepay/.
Usage in Blade, Vue.js, or React:
Available logos: SimplePay (multiple sizes/orientations + white variants), Visa, Mastercard, Maestro, Amex, Apple Pay, Google Pay, Qvik, OTP SZÉP. Pre-composed card type combinations are also included. See examples for Blade, Vue.js, and React checkout page examples.
Logging
Set SIMPLEPAY_LOG_CHANNEL to any Laravel log channel name. Example dedicated channel in config/logging.php:
Services Overview
| Service | Access | Purpose |
|---|---|---|
PaymentService |
SimplePay::payment() |
Standard payments, refunds, queries, Apple Pay, EAM |
CardStorageService |
SimplePay::cardStorage() |
OneClick, recurring, card/token management |
AutoPaymentService |
SimplePay::autoPayment() |
PCI-DSS direct card payments |
RtpService |
SimplePay::rtp() |
Request to Pay (bank transfers) |
SDK Compatibility
This package is built based on the SimplePay PHP SDK v2.1 (API v2). All API requests include the sdkVersion: SimplePay_PHP_SDK_2.1_Laravel identifier.
Examples
- English examples
- Magyar példák
Testing
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of simplepay with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0