XD\Shop\AffiliateMarketing\Providers\HasOffers
Synopsis
class HasOffers
extends AffiliateProvider
{
- // constants
- const TRANSACTION_SESSION_KEY = 'AffiliateProvider.HasOffers.TransactionId';
- const AFFILIATE_SESSION_KEY = 'AffiliateProvider.HasOffers.AffiliateId';
- // members
- private static string $transaction_id_var = 'clickid';
- private static string $affiliate_id_var = 'pub';
- private static $default_offer_id;
- // methods
- public void sessionFromRequest()
- public void doPostBack()
- public void storeTransactionID()
- // Inherited methods from AffiliateProvider
- public abstract void sessionFromRequest()
- public abstract void doPostBack()
- public void storeTransactionID()
Hierarchy
Extends
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Extensible
Constants
Name | Value |
---|---|
TRANSACTION_SESSION_KEY | 'AffiliateProvider.HasOffers.TransactionId' |
AFFILIATE_SESSION_KEY | 'AffiliateProvider.HasOffers.AffiliateId' |
Members
private
- $affiliate_id_var
- $default_offer_id
- $transaction_id_var
Methods
public
- doPostBack() — Handle the postback to the affiliate provider
- sessionFromRequest() — Set the required session data from the request
- storeTransactionID() — Store the transaction id in the db
Inherited from XD\Shop\AffiliateMarketing\Providers\AffiliateProvider
public
- doPostBack() — Handle the postback to the affiliate provider Wrap any exceptions in a PostbackFailedException so these get catched properly on the order extension
- sessionFromRequest() — Set the required session data from the request
- storeTransactionID() — Store the transaction id on the order so we dont lose the session Only usefull when Order.place_before_payment is set to true