Support Forums - Classified Ads Script Osclass

Osclass plugin support => Osclass Pay Plugin => Topic started by: Web on March 22, 2021, 07:14:21 AM

Title: how to pay credits ?
Post by: Web on March 22, 2021, 07:14:21 AM
@mbthemes

how to enable pay with credit


You cannot pay with your credits as your cart contains Product. Payments for products using credits are not allowed.
Title: Re: how to pay credits ?
Post by: MB Themes on March 22, 2021, 07:54:34 AM
@Web
You will have to update cart.php and enable it, but not sure if there are additional controlers.
Title: Re: how to pay credits ?
Post by: Web on March 22, 2021, 10:57:10 AM
@Web
You will have to update cart.php and enable it, but not sure if there are additional controlers.

I'm change condition but Error



if(!$contains_pack && $contains_product) {
        osp_wallet_button(round($total, 2), sprintf(__('Pay %s cart items for %s', 'osclass_pay'), $count, osp_format_price($total, 2)), '901x1x'.$user_id, array('user' => @$user['pk_i_id'], 'itemid' => @$user['pk_i_id'], 'email' => @$user['s_email'], 'amount' => round($total, 2)));
      }



Error

Fatal error: Uncaught PHPMailer\PHPMailer\Exception: Invalid address: (From): osclass@localhost in D:\WAMP\www\eee\oc-includes\vendor\phpmailer\phpmailer\src\PHPMailer.php on line 1513
( ! ) PHPMailer\PHPMailer\Exception: Invalid address: (From): osclass@localhost in D:\WAMP\www\eee\oc-includes\vendor\phpmailer\phpmailer\src\PHPMailer.php on line 1513
Title: Re: how to pay credits ?
Post by: MB Themes on March 22, 2021, 11:46:55 AM
Error has nothing to do with plugin, read it precisely.
Title: Re: how to pay credits ?
Post by: Web on March 22, 2021, 11:57:30 AM
Error has nothing to do with plugin, read it precisely.

Click pay with credit, then REDIRECT to this link

http://localhost/eee/index.php?page=custom&route=osp-wallet&a=55&desc=Pay%201%20cart%20items%20for%2055.00INR&extra=user,2|itemid,2|email,[email protected]|amount,55|concept,Pay%201%20cart%20items%20for%2055.00INR|product,901x1x2|

Error Screenshot

https://ibb.co/c1NprTY
Title: Re: how to pay credits ?
Post by: MB Themes on March 22, 2021, 04:42:01 PM
Error has nothing to do with plugin, read it precisely.