Download the PHP package paga/paga-collect without Composer
On this page you can find all versions of the php package paga/paga-collect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paga/paga-collect
More information about paga/paga-collect
Files in paga/paga-collect
Package paga-collect
Short Description This document lists the different RESTful web services Paga offers allowing anyone (payment request initiator) to initiate a payment request to a third party and automatically get notified when the payment request is fulfilled
License MIT
Homepage https://github.com/Paga-Developer-Community/paga-collect-php-lib
Informations about the package paga-collect
Paga Collect PHP API Library v1.1.2
Business Services exposed by the library
- paymentRequest
- getBanks
- paymentStatus
- paymentHistory
- registerPersistentPaymentAccount
- updatePersistentPaymentAccount
- deletePersistentPaymentAccount
- paymentRequestFund
- getPersistentPaymentAccount
For more information on the services listed above, visit the Paga DEV website
How to use
composer require paga/paga-collect
As shown above, you set the publicId, apiKey, password given to you by Paga, If you pass true as the value for setIsTest(), the library will use the test url as the base for all calls. Otherwise setting it to false will use the live url value you pass as the base.
Paga Collect Service Functions
Request Payment
Registers a new request for payment between a payer and a payee. Once a payment request is initiated successfully, the payer is notified by the platform (this can be suppressed) and can proceed to authorize/execute the payment. Once the payment is fulfilled, a notification is sent to the supplied callback URL.
To make use of this function, call the paymentRequest inside PagaCollectClient which will return a JSONObject.
Get Banks
Retrieve a list of supported banks and their complementary unique ids on the bank. This is required for populating the payer (optional) and payee objects in the payment request model. To make use of this function, call the getBanks inside PagaCollectClient which will return a JSONObject.
Query Payment Request Status
Query the current status of a submitted payment request. To make use of this function, call the paymentStatus inside PagaCollectClient which will return a JSONObject.
Payment Request History
Get payment requests for a period between to give start and end dates. The period window should not exceed 1 month. To make use of this function, call the paymentHistory inside PagaCollectClient which will return a JSONObject.
Register Persistent Payment Account
An operation for business to create Persistent Payment Account Numbers that can be assigned to their customers for payment collection. To make use of this function, call the registerPersistentPaymentAccount inside PagaCollectClient which will return a JSONObject.
Update Persistent Payment Account
This endpoint allows for changing any of the account properties except the accountNumber (NUBAN) and the accounReference properties which cannot be changed. To make use of this function, call the updatePersistentPaymentAccount inside PagaCollectClient which will return a JSONObject.
Delete Persistent Payment Account
This endpoint allows for deleting a persistent payment account. To make use of this function, call the deletePersistentPaymentAccount inside PagaCollectClient which will return a JSONObject.
Payment Request Fund
This end-point can be used to either cancel or initiate a refund if we were unable to fulfill the request for one reason or the other To make use of this function, call the paymentRequestFund inside PagaCollectClient which will return a JSONObject.
Changelog
[1.0.0] - 2021-05-20
Added
- Implemented endpoints for paga-collect
[1.0.1] - 2021-05-25
Bug fix
- Updated dependecies
- Removed php-console dependencies
[1.1.2] - 2021-10-03
Added
- Implemented updatePersistentPaymentAccount, getPersistentPaymentAccount, deletePersistentPaymentAccount, paymentRequestRefund etc.