PHP code example of axelpal / poscredit

1. Go to this page and download the library: Download axelpal/poscredit 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/ */

    

axelpal / poscredit example snippets


composer 

$loanService = new LoanService();

$statusRequest = new StatusShortOptyRequest($userId, $userToken, $profileId);
$response = $loanService->statusShortOpty($statusRequest);

$statusRequest = new StatusOptyRequest($userId, $userToken, $profileId);
$response = $loanService->statusOpty($statusRequest);

$statusRequest = new StatusSelectedOptyRequest($userId, $userToken, $orderId, $profileId);
$response = $loanService->statusSelectedOpty($statusRequest);