Back to PhocacartUserGuestuser class

Method storePayment

public static
storePayment
(mixed $paymentId)

Method storePayment - Source code

public static function storePayment($paymentId)
{
    $session = Factory::getSession();
    if ((int) $paymentId > 0) {
        $session->set('guestpayment', $paymentId, 'phocaCart');
        return true;
    }
    return false;
}