PHP code example of cooper / jlpay-allocate
1. Go to this page and download the library: Download cooper/jlpay-allocate 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/ */
cooper / jlpay-allocate example snippets
$api = new Cooper\JlpayAllocate\Api(PUBLIC_KEY, PRIVATE_KEY, ORG_CODE);
$response = $api->sendOrderSplitQueryRequest(mchId: '849584358120018', orderNo: '61106708379852213248'); // 分账交易结果查询
var_dump($response);