/** * Process the review page * * @param SI_Checkouts $checkout * @return void */ public function process_review_page(SI_Checkouts $checkout) { $checkout->mark_page_complete(self::REVIEW_PAGE); }
/** * We're on the checkout page, just back from PayPal. * Store the token and payer ID that PayPal gives us * * @return void */ public function back_from_paypal(SI_Checkouts $checkout) { // Check to see if the payment processor being used is for this payment processor if (!is_a($checkout->get_processor(), __CLASS__)) { // FUTURE have parent class handle this smarter'r return; } if (self::returned_from_offsite()) { self::set_token(urldecode($_GET['token'])); self::set_payerid(urldecode($_GET['PayerID'])); // Payment is complete $checkout->mark_page_complete(SI_Checkouts::PAYMENT_PAGE); // Skip the review page since that's already done at paypal. $checkout->mark_page_complete(SI_Checkouts::REVIEW_PAGE); } // Starting over. self::unset_token(); }