Download the PHP package paymaya/paymaya-sdk without Composer
On this page you can find all versions of the php package paymaya/paymaya-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package paymaya-sdk
PayMaya-PHP-SDK
PayMaya PHP SDK allows your web applications to accept payments from your customers using any MasterCard and Visa enabled card (credit, debit, or prepaid).
Prerequisites
Tests
- phpunit/phpunit: 4.8.*
Installation
-
Via Composer
- Direct download
Integrate the SDK by cloning this repo (https://github.com/PayMaya/PayMaya-PHP-SDK) and manually adding it to your project. You can look at the sample directory to guide you on using the SDK
Prerequisites
API Keys
To use PayMaya PHP SDK, you need to have a different API key for Sandbox and Production environment.
Sandbox Environment
Sandbox credentials are useful for testing application integration. All transactions and money flow made in this environment are only simulated and does not reflect your production records. Sandbox API keys are available in the following:
https://developers.paymaya.com/blog/entry/checkout-api-test-credit-card-account-numbers
Production Environment
Upon successful integration testing, contact us in the PayMaya Developers Portal to know more about the merchant onboarding process. Once you are onboarded, we will provide your production API credentials. Upon receipt, just change your SDK initialization to use production environment to start accepting live transactions.
Usage
1. Autoload the SDK. This will include all the files and classes to your autoloader. If you downloaded the SDK using composer, replace PayMaya-PHP-SDK with vendor.
2. Initialize SDK with public-facing API key, secret API key, and the intended environment ("SANDBOX" or "PRODUCTION)
Checkout
1. Create Checkout object
2. Checkout methods
-
Execute Checkout - Method will assign checkout ID and checkout URL to checkout object. Use the checkout URL to redirect the buyer to Checkout page.
- Retrieve Checkout - Method will assign all available checkout information to the object give checkout ID.
Customization
1. Create Customization object
2. Customization methods
-
Set Customization - Used to set a merchant's checkout page customization.
-
Get Customization - Used to get a merchant's checkout page customization.
- Remove Customization - Used to remove a merchant's checkout page customization.
Webhook
1. Create Webhook object
2. Webhook methods
-
Register webhook - Used to register an event-based webhook.
-
Update webhook - Used to update an existing event-based webhook.
-
Delete webhook - Used to delete an existing webhook. You cannot undo this action.
- Retrieve webhooks - Used to retrieve the list of merchant registered webhooks.
Summary
- These docs in the SDK include an overview of usage, step-by-step integration instructions, and sample code.
- A sample app is included in the sample folder in the project.
- Checkout API Documentation and Payments API Documentation are currently available which cover error codes and server-side integration instructions.
Contribution
- If you would like to contribute, please fork the repo and send in a pull request.