PHP OOP Pay360 Api integration
$ composer require muhittingulap/pay360
<?php
include('vendor/autoload.php');
$payService = new \PAY360\libraries\transactions();
$custService = new \PAY360\libraries\customers();
Parametre | Detail |
---|---|
username | API Username (pay360 Information contained in the mail sent by) |
password | API Password (pay360 Information contained in the mail sent by) |
cardLockId | CardLock ID (pay360 Information contained in the mail sent by) |
hostedCashierId | Installations Hosted Cashier (pay360 Information contained in the mail sent by) |
cashierId | Installations Cashier API (pay360 Information contained in the mail sent by) |
type | 0: Test 1: Prod |
<?php
$payService->setUsername()
->setPassword()
->setCardLockId()
->setHostedCashierId()
->setType(); // 0:test 1:prod
<?php
$payService->setPostData($p_data) // $p_data -> array data -> review documents
->verify();
<?php
$payService->setPostData($p_data) // $p_data -> array data -> review documents
->payment();
<?php
$return=$payService->resume(); // return data -> review documents
<?php
$payService->setPostData($p_data) // $p_data -> array data -> full refund or partial refund -> review documents
->refund();
<?php
$custService->setCardToken()// pa360 card token
->setCustomerId() // pa360 customer Id
->paymentMethodRemove();