Download the PHP package simpaypl/simpay without Composer
On this page you can find all versions of the php package simpaypl/simpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simpaypl/simpay
More information about simpaypl/simpay
Files in simpaypl/simpay
Package simpay
Short Description Official SimPay API
License MIT
Homepage https://simpay.pl/
Informations about the package simpay
Simpay.pl API PHP SDK
Description
This documentation is intended for current and future Simpay Partners. Prior to implementation, it is necessary to define the service in the Partner Panel and wait for its activation directly from the operators.
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install run composer require simpaypl/simpay
Manual Installation
Download the files and include autoload.php
:
Getting Started
Examples
All examples are in the examples directory.
Documentation for API Endpoints
API Endpoints
All URIs are relative to https://api.simpay.pl
- Configuration
- DirectBillingApi
- DirectBillingCalculateApi
- DirectBillingTransactionApi
- HttpClientFactory
- PaymentApi
- SmsNumberApi
- SmsServiceApi
- SmsTransactionApi
Models
Requests:
- Amount
- AmountType
- Billing
- CallbackReturnUrl
- CartItem
- Channel
- ChannelType
- Control
- CreatePayment
- Currency
- Customer
- Description
- DirectBillingTransaction
- DirectBillingTransactionStatus
- DirectChannel
- Filters
- Operator
- PaymentTransactionId
- PhoneNumber
- Referer
- ServiceId
- ServiceNumber
- Shipping
- SmsCode
- SmsNumber
- SmsTransactionId
- StreamId
Responses:
- Amount
- AmountType
- CallbackReturnUrl
- DirectBillingTransaction
- DirectBillingTransactionCollection
- DirectBillingTransactionList
- DirectBillingTransactionNotify
- Operator
- Pagination
- PaginationLinks
- PaymentChannel
- PaymentChannelCollection
- PaymentCreate
- PaymentService
- PaymentServiceCollection
- PaymentServiceTransaction
- PaymentServiceTransactionCollection
- PaymentServiceTransactionStatus
- PaymentServiceTransaction
- PaymentServiceTransactionAddress
- PaymentServiceTransactionAmount
- PaymentServiceTransactionCartItems
- PaymentServiceTransactionCustomer
- PaymentServiceTransactionRedirect
- Service
- ServiceCalculation
- ServiceCalculationOperatorAmount
- ServiceCollection
- ServiceNumber
- ServiceStatus
- ServiceType
- SmsNumber
- SmsNumberCollection
- SmsService
- SmsServiceCheckCodeData
- SmsServiceCollection
- SmsTransaction
- SmsTransactionCollection
Exceptions:
- Simpay\Exception\ExceptionFactory
- Simpay\Exception\Forbidden
- Simpay\Exception\InternalServerError
- Simpay\Exception\NotFound
- Simpay\Exception\Unauthorized
- Simpay\Exception\Unknown
- Simpay\Exception\UnprocessableEntity
All the exceptions have the getErrors
method which returns an array of errors returned by the API.
Tests
To run the tests, use:
Docker
To build the Docker image:
To run the Docker image:
Enter the container (bash):
To run the tests:
To run the linter:
About this package
- API version:
1.0.0
All versions of simpay with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0