Download the PHP package devinweb/payment without Composer

On this page you can find all versions of the php package devinweb/payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package payment

Very short description of the package

Payment Package provide a simple way to handle payment gateway in MENA.

Installation

This package requires Laravel 5.4 or higher. if your laravel is > 5.4 you can skip the two steps (2, 3) below (Package Auto Discovery 5.5+).

  1. You can install the package via composer:

  2. Open your config/app.php and add the following to the providers array

  3. In the same config/app.php and add the following to the aliases array:

  4. Run the command below to publish the package config file config/payfort-payment.php:

Payfort

To pay via payfort it's simple, but before process the payment it's requiered to setup your FrontEnd, you can check the payment-boilerplate Repository.

Configuration (Payfort)

Now you can add your payfort credentiels to app/config/payments/php

Routing (Payfort)

Next to use Payfort, you need three Routes:

  1. Used to submit data from the front end to the backend.
  2. The second if the payment is successfuly.
  3. For redirecting if payfort response with error.

you can access to Payment using Payment facade.

Required Parameters (Payfort)

Each request should be contains amount, email, hold_name

Payfort Apple Pay

You can use this package to handle the apple pay transactions via Payfort.

Configuration (Payfort Apple Pay)

you should add payfort apple pay credentiels to the app/confing/payments/php

Usage (Payfort Apple Pay)

To pay via Payfort apple pay is the the same as before you can use.

Required Parameters (Payfort Apple Pay)

The parameters required to be attached in your request payload to use Apple Pay is:

Pay With ReactNative

if you want to process the payment via webView in your react native mobile app

In your php controller or route you can use

Payfort Events

As we know payfort can notify the merchant, for all events you subscribed for on an transaction. we need the first to add your callback into payfort dashboard, then you can implement this callback in your application

This webHook can invoks two events build in. There are two events available for you to listen for.

Event Fired Parameter
Devinweb\Payment\Events\SuccessTransaction when payfort response with the successful data array success response
Devinweb\Payment\Events\FailTransaction when payfort response with the Fail data array fail_response

exemple

check this repos payment-boilerplate.

Success response

Fail response

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

About Devinweb

Devinweb is a web app agency in Tetouan, Morocco. our website.

License

The MIT License (MIT). Please see License File for more information.


All versions of payment with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
guzzlehttp/guzzle Version ^6.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devinweb/payment contains the following files

Loading the files please wait ....