PHP code example of muhittingulap / pay360

1. Go to this page and download the library: Download muhittingulap/pay360 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

muhittingulap / pay360 example snippets



         
    new \PAY360\libraries\transactions();
    $custService = new \PAY360\libraries\customers();



   
  $payService->setUsername()
             ->setPassword()
             ->setCardLockId()
             ->setHostedCashierId()
             ->setType(); // 0:test 1:prod



   
  $payService->setPostData($p_data) // $p_data -> array data -> review documents
             ->verify();



   
  $payService->setPostData($p_data) // $p_data -> array data -> review documents
             ->payment();



   
  $return=$payService->resume(); // return data -> review documents



   
   $payService->setPostData($p_data) // $p_data -> array data -> full refund or partial refund -> review documents
             ->refund();



   
  $custService->setCardToken()// pa360 card token
              ->setCustomerId() // pa360 customer Id
              ->paymentMethodRemove();