Download the PHP package circlecreative/payvala-php-sdk without Composer
On this page you can find all versions of the php package circlecreative/payvala-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download circlecreative/payvala-php-sdk
More information about circlecreative/payvala-php-sdk
Files in circlecreative/payvala-php-sdk
Package payvala-php-sdk
Short Description Advanced Payvala API PHP SDK
License MIT
Informations about the package payvala-php-sdk
PayVala SoundBox PHP SDK
Payvala PHP SDK
is a PHP library to send messages through the PayVala API into PayVala SoundBox Device. This library uses GuzzleHttp\Client
for HTTP communication with the Payvala API.
Features
- Easy Authentication: Supports authentication with
accessKey
,accessKeyId
, andauthCode
. - Message Sending: Send messages with flexible parameters.
- Response Handling: Get clear responses with code and messages from the API.
Installation
To install Payvala
, you can use Composer:
If you are using PHP without a framework, you can include the autoload file:
Usage
Using Payvala
Methods
setAccessKey(string $accessKey)
Sets the accessKey
for authentication.
setAccessKeyId(string $accessKeyId)
Sets the accessKeyId
for authentication.
setAuthCode(string $authCode)
Sets the authCode
for authentication.
sendMessage(array $data): array
Sends a message via the Payvala API with the provided data.
Template Code List
Code | Description |
---|---|
01 | Amount Only |
02 | Amount broadcast with Payer Name (not in use as of now) |
10 | Test Message |
Language Code List
Code | Description |
---|---|
DE | Default |
EN | English |
ID | Indonesia |
API Response
Response Code List
Code | Message |
---|---|
0001 | Delivered to Device |
0002 | Broadcasted by Device |
0003 | Delivered to Device and Broadcasted by Device |
1001 | Invalid credentials (Access Key ID/Access Key/Auth Code) |
1002 | Missing credentials (Access Key ID/Access Key/Auth Code) |
1003 | Incorrect Parameter Value |
1004 | Missing Mandatory parameter |
1005 | Incorrect combination of template and language |
1006 | Amount Invalid |
2001 | Device Does not exist / not provisioned / Device Inactive |
2002 | Device offline / delivery to device unsuccessful |
3001 | MQTT system failure |
3002 | API not available |
3003 | API overflow |
9000 | Other Error |
License
This library is licensed under the MIT License.
Contributing
We welcome contributions from the community. If you'd like to contribute, please follow these steps:
- Fork this repository
- Create a branch for your new feature (
git checkout -b feature-new-feature
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-new-feature
) - Open a pull request
Contact
If you have any questions or need further assistance, please open an issue on the GitHub repository or contact us via email.