nsanden / jvzoo-rest-api-php
您可以使用此类与 JVZoo REST API 进行交互。
dev-master
2017-08-05 17:22 UTC
This package is not auto-updated.
Last update: 2024-09-28 17:54:30 UTC
README
您可以使用此类与 JVZoo REST API 进行交互。
安装 (Composer)
composer require nsanden/jvzoo-rest-api-php:dev-master
示例
从以下开始
$api_key = 'xxxxxxxxx'; $account_password = 'xxxxxxxx'; $jvzoo_rest_api = new \nsanden\jvzoo\JvzooRestApi($api_key, $account_password);
获取周期性付款状态
$pre_key = 'PA-XXXXXXXXXXXX'; var_dump(json_decode($jvzoo_rest_api->getRecurringPayment($pre_key)));
取消周期性付款
$pre_key = 'PA-XXXXXXXXXXXX'; var_dump(json_decode($jvzoo_rest_api->cancelRecurringPayment($pre_key)));
获取交易摘要
$pay_key = 'PA-XXXXXXXXXXXX'; var_dump(json_decode($jvzoo_rest_api->getTransactionSummary($pay_key)));
获取联盟状态
$product_id = 'XXXXXXXX'; $affiliate_id = 'XXXXXXXXXXXX'; var_dump(json_decode($jvzoo_rest_api->getAffiliateStatus($product_id, $affiliate_id)));