Download the PHP package jagdish-j-p/fpx-payment without Composer

On this page you can find all versions of the php package jagdish-j-p/fpx-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 fpx-payment

Very short description of the package

This package provides laravel implementations for Paynet FPX services.

Become a sponsor

Your support allows me to keep this package free, up-to-date and maintainable. Alternatively, you can spread the word!

Installation

You can install the package via composer:

Then run the publish command to publish the config files and support controller

This will generate the following files

Setup

  1. Add your redirect urls and your Seller and Exchange ID to the .env file.

  2. You can skip this steps, if you have already generated CSR. Visit fpx/csr/request path in browser to generate CSR.

    http://app.test/fpx/csr/request

    Fill the form and click on GENERATE. On right side textarea will be generated with openSSL code. Download openSSL from https://www.openssl.org/ if you don't have installed it. Run openssl code to generate CSR. Submit this CSR to FPX service provider to get the Exchange Certificates.

  3. After generating your certificates add them to your app. By default, we look for the certificates inside the following directives. Create fpx/uat and fpx/prod directories in storage/app directory and paste your certificates there. You can find UAT certificate in fpx certificates/uat/fpxuat_current.cer rename it with your Exchange ID and place it in mentioned UAT directory.

You can override the defaults by updating the config file.

  1. Run migration to add the banks and fpx_transactions table

  2. (Optional) Run this command if you encounter issue with the initial setup

Usage

  1. First run the following command to seed the banks list.

you should schedule the fpx:banks Artisan command to run daily:

  1. Add one the x-fpx-payment component with the following attributes

During testing, you can use the test-mode attribute to override the provided amount to 'MYR 1.00'

  1. Handle the payment response in Http/Controllers/FPX/Controller.php

  2. Check Status of all pending transactions using command

  3. Check Status of specific transaction using command pass comma saperated order reference ids.

  4. Check transaction status and Bank list from Controller

  5. API for transaction status

Web Integration

You can visit http://app.test/fpx/initiate/payment for the payment flow demo of web integration.

Mobile App Integration

Follow these steps to integrate in mobile application.

Request Details

Open http://app.test/fpx/initiate/payment/app in web view with POST method and POST below parameters.

Response

You must use response field to display receipt. fpx_response is added if you need any extra details.

response.status will be succeeded, failed or pending.

You can also override payment.blade.php with your custom design to integrate with your layout. but do not change name attribute of html controls and action URL of form.

Changelog

Please see CHANGELOG for more information 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.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of fpx-payment with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
nesbot/carbon Version ^2.48.0
laravelcollective/html Version ^6.2
monarobase/country-list Version ^3.2
eastwest/json Version ^3.0
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 jagdish-j-p/fpx-payment contains the following files

Loading the files please wait ....