Download the PHP package arthurnumen/veritrans-php without Composer
On this page you can find all versions of the php package arthurnumen/veritrans-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arthurnumen/veritrans-php
More information about arthurnumen/veritrans-php
Files in arthurnumen/veritrans-php
Package veritrans-php
Short Description PHP Wraper for Veritrans VT-Web Payment API.
License GPL-3.0
Homepage https://veritrans.co.id
Informations about the package veritrans-php
Veritrans-PHP
Veritrans :heart: PHP!
This is the all new PHP client library for Veritrans 2.0. This is the official PHP wrapper for Veritrans Payment API. Visit https://www.veritrans.co.id for more information about the product and see documentation at http://docs.veritrans.co.id for more technical details.
Installation
Composer Installation
If you are using Composer, add this require line to your composer.json
file:
and run composer install
on your terminal.
Manual Instalation
If you are not using Composer, you can clone or download this repository.
How to Use
General Settings
Set Server Key
Set Client Key (VT-Direct)
Set Environment
Set Sanitization
VT-Web
You can see some VT-Web examples here.
Get Redirection URL of a Charge
Handle Notification Callback
VT-Direct
You can see some VT-Direct examples here.
Checkout Page
Checkout Process
1. Create Transaction Details
2. Create Item Details, Billing Address, Shipping Address, and Customer Details (Optional)
3. Get Token ID from Checkout Page
4. Create Transaction Data
5. Charge
6. Handle Transaction Status
Process Transaction
Get a Transaction Status
Approve a Transaction
Cancel a Transaction
Contributing
Developing e-commerce plug-ins
There are several guides that must be taken care of when you develop new plugins.
-
Handling currency other than IDR. Veritrans
v1
andv2
currently accepts payments in Indonesian Rupiah only. As a corrolary, there is a validation on the server to check whether the item prices are in integer or not. As much as you are tempted to round-off the price, DO NOT do that! Always prepare when your system uses currencies other than IDR, convert them to IDR accordingly, and only round the price AFTER that. - Consider using the auto-sanitization feature.