nsanden/jvzoo-rest-api-php

You can use this class to interface with the JVZoo Rest API.

Installs: 274

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 4

Open Issues: 0

pkg:composer/nsanden/jvzoo-rest-api-php

dev-master 2017-08-05 17:22 UTC

This package is not auto-updated.

Last update: 2025-12-07 00:01:57 UTC


README

You can use this class to interface with the JVZoo REST API.

Install (Composer)

composer require nsanden/jvzoo-rest-api-php:dev-master

Examples

Start with

$api_key = 'xxxxxxxxx';
$account_password = 'xxxxxxxx';
$jvzoo_rest_api = new \nsanden\jvzoo\JvzooRestApi($api_key, $account_password);

Get recurring payment status

$pre_key = 'PA-XXXXXXXXXXXX';
var_dump(json_decode($jvzoo_rest_api->getRecurringPayment($pre_key)));

Cancel recurring payment

$pre_key = 'PA-XXXXXXXXXXXX';
var_dump(json_decode($jvzoo_rest_api->cancelRecurringPayment($pre_key)));

Get transaction summary

$pay_key = 'PA-XXXXXXXXXXXX';
var_dump(json_decode($jvzoo_rest_api->getTransactionSummary($pay_key)));

Get affiliate status

$product_id = 'XXXXXXXX';
$affiliate_id = 'XXXXXXXXXXXX';
var_dump(json_decode($jvzoo_rest_api->getAffiliateStatus($product_id, $affiliate_id)));