Download the PHP package notchpay/notchpay-php without Composer
On this page you can find all versions of the php package notchpay/notchpay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download notchpay/notchpay-php
More information about notchpay/notchpay-php
Files in notchpay/notchpay-php
Package notchpay-php
Short Description Notch Pay PHP Wrapper.
License MIT
Homepage https://github.com/notchpay/notchpay-php
Informations about the package notchpay-php
Introduction
A PHP API wrapper for Notch Pay.
Installation
You can install the package via composer:
Usage
Do a redirect to the authorization URL received from calling the payments/initialize endpoint. This URL is valid for one time use, so ensure that you generate a new URL per payment.
When the payment is successful, we will call your callback URL (as setup in your dashboard or while initializing the transaction) and return the reference sent in the first step as a query parameter.
If you use a test public key, we will call your test callback url, otherwise, we'll call your live callback url.
0. Prerequisites
Confirm that your server can conclude a TLSv1.2 connection to Notch Pay's servers. Most up-to-date software have this capability. Contact your service provider for guidance if you have any SSL errors. Don't disable SSL peer verification!
1. Prepare your parameters
email
, amount
and currency
are the most common compulsory parameters. Do send a unique email per customer.
The amount accept numeric value value.
The currency accept currency ISO 3166.
For instance, to accept For US Dollar
, please send USD
as the currency.
2. Initialize a onetime payments
Initialize a payment by calling our API.
When the user enters their payment details, NotchPay will validate and charge the card. It will do all the below:
Send a payment.complete event to your Webhook URL set at: https://business.notchpay.co/settings/developer
If receipts are not turned off, an HTML receipt will be sent to the customer's email.
3. Verify Transaction
After we redirect to your callback, please verify the transaction before giving value.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.