Download the PHP package placetopay/kount without Composer
On this page you can find all versions of the php package placetopay/kount. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package kount
Kount SDK for RIS and Data Collector
Installation
This SDK can be installed easily through composer
Usage
Data Collector
First on the page where the credit card information will be gathered you need to place the iframe for the data collector, make sure to replace YOUR_WEBPAGE_URL, YOUR_MERCHANT and THE_SESSION for the payment
Note: It HAS to be over HTTPS, and it does NOT has to be on the root of your url, you can use https://YOUR_WEBPAGE_URL/kount/something/logo.htm, and I'm not entirely sure that it needs to call logo.htm and logo.gif, but I'm using those names anyway
Then make sure that your application responds with a HTTP code 302 to redirect to the Kount's url
This example it's made with Laravel, but the principle it's the same, slug its the logo.htm or logo.gif part, and the session it's captured through the GET variable, the merchant it's not required because it has been set on the initialization of the service
Once this it's done, the data collector will be working just fine.
RIS Inquiry
Once the card information, payer data, items and other has been captured and you have the information on your server just make an array with the information to send to Kount in this way
Please try to provide as much information as you can, but there is NOT required shipping, gender, shipmentType, more than 1 item (It has to be at least one), address for payer information
Available response information
The response object provides a convenient structure and methods that allow you to get all the information returned by Kount.
Identifiers and references
Decision information
Verification result
Transaction information
Transaction IP information
Triggered rules
Triggered counters
Warnings
Errors
Additional information
Mocked responses
If you change the client on the settings for the mock client the responses would be mocked ones and the real service will not be used
After this mock instance is loaded the available options to mock are this ones. Those are passed via payment.reference
, meaning the reference on the transaction
- AUTH_ERR - Simulates a bad or expired ApiKey
- REVIEW - Simulates a review response
- DECLINE - Simulates a declination response
- EXCEPTION - Simulates an internal exception
Any other reference would return an approved response