Looking to hire Laravel developers? Try LaraJobs

openpaylaravel maintained by openpayau

Description
This is a client implementing the payment services for Openpay
Last update
2019/04/09 10:17 (dev-master)
License
Links
Downloads
1 390

Comments
comments powered by Disqus

  This docmetation basically for composer php. if you want to use our sdk for composer based php like laravel go to install Openpay composer package run the below command:

  • To install Openpay composer package run the below command composer require openpayau/openpaylaravel dev-master
  • Include the Openpay.php in the any controller page
  • In the file the basic urls are define like this and use those constant
  • Then you have to set the basic parameters like this

  • Now you have to call the Call-1 NEW ONLINE ORDER API menthods like this
  • Store Call-1 response in log file use this code

Save string to log, use FILE_APPEND to append:

  • Now we got plan id and ready for payment so here it is by Call-2 API
  • After the payment process complited on openpay, it will redirect to the merchant website with help of callback url

        Success Result :

        Cancel Result :

        Failure Result :

  • Add the Call-3 PAYMENT CAPTURE API like below

Something to write to txt log:

Save string to log, use FILE_APPEND to append:

  • Check your order status

Something to write to txt log:

Save string to log, use FILE_APPEND to append:

  • For Refund Process

Something to write to txt log:

Save string to log, use FILE_APPEND to append:

    .
  • For Plan Dispatch

        This call supports Retailers that are set up to not receive any payment for their Plans until their system has issued a     dispatch notice. This allows those retailers to make adjustments to their orders as needed prior to fulfilment and then receive     the payment and reconciliation information after the dispatch event occurs.

Something to write to txt log:

Save string to log, use FILE_APPEND to append:

  • For Online Order Fraud Alert Process

Something to write to txt log:

Save string to log, use FILE_APPEND to append:

    .