Today I did a real payment from my personal credit card and found out this behavior is the same.
I have also tried changing from
if(osp_param('paypal_standard') == 1) {
$product_type = explode('x', Params::getParam('item_number'));
$tx = Params::getParam('txn_id') <> '' ? Params::getParam('txn_id') : Params::getParam('tx');
$payment = ModelOSP::newInstance()->getPaymentByCode($tx, 'PAYPAL');
error_log(print_r($tx));
error_log(gettype($tx));
if (isset($payment['pk_i_id'])) {
osc_add_flash_ok_message(sprintf(__('Success! Please write down this transaction ID in case you have any problem: %s', 'osclass_pay'), $tx));
} else {
osc_add_flash_info_message(sprintf(__('We are processing your payment, if it did not finish in a few seconds, please contact us', 'osclass_pay'), $tx));
}
$status = PaypalPayment::processPayment();
osp_js_redirect_to(osp_pay_url_redirect($product_type));
to
if(osp_param('paypal_standard') == 1) {
$status = PaypalPayment::processPayment();
$product_type = explode('x', Params::getParam('item_number'));
$tx = Params::getParam('txn_id') <> '' ? Params::getParam('txn_id') : Params::getParam('tx');
$payment = ModelOSP::newInstance()->getPaymentByCode($tx, 'PAYPAL');
error_log(print_r($tx));
error_log(gettype($tx));
if (isset($payment['pk_i_id'])) {
osc_add_flash_ok_message(sprintf(__('Success! Please write down this transaction ID in case you have any problem: %s', 'osclass_pay'), $tx));
} else {
osc_add_flash_info_message(sprintf(__('We are processing your payment, if it did not finish in a few seconds, please contact us', 'osclass_pay'), $tx));
}
osp_js_redirect_to(osp_pay_url_redirect($product_type));
with no results.
I can not believe I am the only one who does not have the paypal standard working.
Is it working for you guys ?
Thanks