NAME

plenigo::CheckoutHelper - A utility class offering support for checkout functionality. 

SYNOPSIS

use plenigo::CheckoutHelper;

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

my $offer = plenigo::Offer->createPlenigoOffer('CUSTOMER_ID', 'CUSTOMER_IP_ADDRESS', ((plenigoOfferId => 'OFFER_ID1')));
my $checkout_helper = plenigo::CheckoutHelper->new(configuration => $configuration);
my $purchase_id = $checkout_helper->getPurchaseId($offer);

DESCRIPTION

plenigo::CheckoutHelper provides functionality to prepare a plenigo checkout.

METHODS

getPurchaseId($offer)

Get purchase id necessary for plenigo checkout.