magicway / momagic-php
PHP library for Magic way payment gateway
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-05-14 14:15:44 UTC
README
MagicWay Payment Gateway Integration - PHP Library
Library Directory
|-- config/
|-- config.php
|-- lib/
|-- MoMagicAbstraction.php (core file)
|-- MoMagicInterface.php (core file)
|-- MoMagicConnector.php (core file)
|-- pg_redirection/
|-- cancel.php
|-- fail.php
|-- success.php
|-- ipn.php
|-- README.md
|-- orders.sql
|-- db_connection.php
|-- checkout_hosted.php
|-- example_hosted.php
|-- OrderTransaction.php
Instructions:
-
Step 1: Download and extract the library files into your project
-
Step 2: Create a database and import the
orders.sql
table schema. Then set the database credential ondb_connection.php
file. -
Step 3: For Checkout integration, you can update the
checkout_hosted.php
or use a different file according to your need. We have provided a basic sample page from where you can kickstart the payment gateway integration. -
Step 4: When user click Continue to checkout button, redirect customer to payment channel selection page.
-
Step 5: For redirecting action from MagicWay Payment gateway, we have also provided sample
success.php
,cancel.php
,fail.php
andipn.php
files. You can update those files according to your need.
Contributors
Arifur Rahman