if not logged in account you have error on /osclasspay/itempaypub/ page
you need to change code in StripePayment.php line 38-59 on this
if(osc_logged_user_email() > null){
$emailstripe = osc_logged_user_email();
} else {
$emailstripe = null;
}
$SUCCESSURL = osc_base_url() . 'oc-content/plugins/' . osc_plugin_folder(__FILE__) . 'success.php?orderId=' . $order_id;
$CANCELURL = osc_base_url() . 'oc-content/plugins/' . osc_plugin_folder(__FILE__) . 'cancel.php';
\Stripe\Stripe::setApiKey($stripe['secret_key']);
$session = \Stripe\Checkout\Session::create([
'payment_method_types' => ['card'],
'line_items' => [[
'name' => $itemnumber,
'description' => $description,
'amount' => round($amount*100),
'currency' => osp_currency(),
'quantity' => 1,
]],
'client_reference_id' => $order_id,
'customer_email' => $emailstripe,
'success_url' => $SUCCESSURL,
'cancel_url' => $CANCELURL
]);