Download the PHP package jpay-api/php-sdk without Composer
On this page you can find all versions of the php package jpay-api/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jpay-api/php-sdk
More information about jpay-api/php-sdk
Files in jpay-api/php-sdk
Package php-sdk
Short Description Php API SDK for J-Pay payment gateway
License MIT
Homepage https://github.com/jpay-api/php-sdk
Informations about the package php-sdk
Getting Started with J-Pay API
Introduction
Php API SDK for J-Pay payment gateway
Installation
With Composer
Initialize the API Client
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
| Parameter | Type | Description |
|---|---|---|
| apiKey | string |
Merchant API key for automatic MD5 request signing on Payments API calls. |
| environment | Environment |
The API environment. Default: Environment.SANDBOX |
| timeout | int |
Timeout for API calls in seconds. Default: 30 |
| enableRetries | bool |
Whether to enable retries and backoff feature. Default: false |
| numberOfRetries | int |
The number of retries to make. Default: 0 |
| retryInterval | float |
The retry time interval between the endpoint calls. Default: 1 |
| backOffFactor | float |
Exponential backoff factor to increase interval between retries. Default: 2 |
| maximumRetryWaitTime | int |
The maximum wait time in seconds for overall retrying requests. Default: 0 |
| retryOnTimeout | bool |
Whether to retry on request timeout. Default: true |
| httpStatusCodesToRetry | array |
Http status codes to retry against. Default: 408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524 |
| httpMethodsToRetry | array |
Http methods to retry against. Default: 'GET', 'PUT', 'GET', 'PUT' |
| loggingConfiguration | LoggingConfigurationBuilder |
Represents the logging configurations for API calls |
| proxyConfiguration | ProxyConfigurationBuilder |
Represents the proxy configurations for API calls |
| verifyPeer | bool |
Whether to verify SSL certificates. Default: true |
| verifyHost | bool |
Whether to verify SSL host names. Default: true |
The API client can be initialized as follows:
Environments
The SDK can be configured to use a different environment for making API calls. Available environments are:
Fields
| Name | Description |
|---|---|
| SANDBOX | Sandbox (Default) |
| PRODUCTION | Production |
Request Models & Builders
Each API endpoint supports typed request models with fluent builders aligned to the OpenAPI spec. All parameters use string types as defined in the API.
Response models are automatically deserialized (e.g. PayTradeQueryResponse, PaymentResponse).
Automatic Request Signing
When apiKey is configured, PaymentsApi automatically generates the MD5 signature (pay_md5sign) before sending outbound requests. You do not need to set payMd5Sign manually unless you want to override the computed value.
Signing follows the J-Pay signature algorithm: non-empty sign fields are sorted by name, joined as key=value&..., appended with &key={apiKey}, then MD5-hashed in uppercase.
For card payment creation (POST /pay_index), the signed fields are: pay_memberid, pay_orderid, pay_applydate, pay_bankcode, pay_notifyurl, pay_callbackurl, pay_amount.
List of APIs
- Payments API
- Payments Link Payment
- Agency
- Files
- Payouts
SDK Infrastructure
Configuration
- ProxyConfigurationBuilder
- LoggingConfigurationBuilder
- RequestLoggingConfigurationBuilder
- ResponseLoggingConfigurationBuilder
HTTP
- HttpRequest
Utilities
- FileWrapper
- ApiResponse
All versions of php-sdk with dependencies
ext-json Version *
ext-curl Version *
apimatic/unirest-php Version ^4.0.6
apimatic/core-interfaces Version ~0.1.5
apimatic/core Version ~0.3.17