NAME

plenigo::PurchasesManager - A utility class to offer purchase information.

SYNOPSIS

use plenigo::PurchasesManager;

# Prepare configuration

my $use_stage = 0; # set if stage system should be used
my $configuration = plenigo::Configuration->new(access_token => 'ACCESS_TOKEN', use_stage => $use_stage);

# Instantiate purchases manager

my $purchases_manager = plenigo::PurchasesManager->new(configuration => $configuration);

# Get all subscriptions of a customer

my %subscriptions = $purchases_manager->getCustomerSubscriptions('CUSTOMER_ID');

DESCRIPTION

plenigo::CustomerPurchasesManager provides functionality to offer purchase information.

getCustomerSubscriptions($customer_id)

Get all subscriptions that were purchased by a customer.