{"repo":"Midtrans/midtrans-php","free":true,"listed":false,"github":"https://github.com/Midtrans/midtrans-php","clone":"git clone https://github.com/Midtrans/midtrans-php.git","description":"Official Midtrans Payment API Client for PHP | https://midtrans.com","language":"PHP","stars":419,"topics":["composer-package","php-library","payment-gateway","midtrans"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Midtrans-PHP =============== Midtrans :heart: PHP! This is the Official PHP wrapper/library for Midtrans Payment API, that is compatible with Composer. Visit https://midtrans.com for more information about the product and see documentation at http://docs.midtrans.com for more technical details. Starting version 2.6, this library now supports Snap-bi. You can go to this docs to learn more about Snap-bi. 1. Installation 1.a Composer Installation If you are using Composer, you can install via composer CLI: or add this require line to your composer.json file: and run composer install on your terminal. Note: If you are using Laravel framework, in some case you also need to run composer dumpautoload /Midtrans will then be available (auto loaded) as Object in your Laravel project. 1.b Manual Instalation If you are not using Composer, you can clone or download this repository. Then you should require/autoload Midtrans.php file on your code. 2. How to Use 2.1 General Settings Override Notification URL You can opt to change or add custom notification urls on every transaction. It can be achieved by adding additional HTTP headers into charge request. More details Note: When both appendNotifUrl and overrideNotifUrl are used together then only overrideNotifUrl will be used. Both header can only receive up to maximum of 3 urls . Idempotency-Key You can opt to add idempotency key on charge transaction. It can be achieved by adding additional HTTP headers into charge request. Is a unique val","default_branch":null,"files":null,"tree":[],"storefront":"/r/Midtrans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Midtrans/midtrans-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}