Advertisement:

Author Topic: PAYMENT PLUGIN not writing anything in database  (Read 1828 times)

Adolescent

  • Newbie
  • *
  • Posts: 8
PAYMENT PLUGIN not writing anything in database
« on: December 04, 2013, 07:06:54 pm »
Dear OSclass admin/team,

first of all, I want to thank you for your continuous efforts developing os-class - it's really a great piece of software.
I was especially delighted when the latest Update of the Payment Plugin was released on October 30th.
It removed a lot of problems I had with this plugin.

Yet, the following problem is still showing up EVERY time:
(tested on 2 different servers, both virgin installs (osclass 3.2.2 with Bender Theme) and modified versions)


"We are processing your payment, if we did not finish in a few seconds, please contact us"
(and nothing is written in the database at all)

So I started by looking into the RETURN.PHP FILE:

isset($payment['pk_i_id'] --> false //when false, then the error msg flashes up

$payment = ModelPayment::newInstance()->getPayment($tx); //so $payment['pk_i_id'] is apparently defined by the function getPayment($tx)


So next, I checked  MODELPAYMENT.PHP, where get payment is defined:

public function getPayment($paymentId) {
            $this->dao->select('*') ;
            $this->dao->from($this->getTable_log());
            $this->dao->where('pk_i_id', $paymentId);
$this->dao->where('pk_i_id', $paymentId);   


---> I do not understand how $tx could ever be identical with the primary key "pk_i_id" in oc_t_payments_log?

Maybe you can help me get to the core of the problem.
Thank you!
« Last Edit: December 04, 2013, 07:12:04 pm by Adolescent »

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: PAYMENT PLUGIN not writing anything in database
« Reply #1 on: December 10, 2013, 11:07:56 am »
Hi

I've just created an issue for this : https://github.com/osclass/plugin-payment/issues/18

Thanks a lot

lexosc

  • Sr. Member
  • ****
  • Posts: 344
Re: PAYMENT PLUGIN not writing anything in database
« Reply #2 on: December 20, 2013, 07:09:36 pm »
hi i have osclass 3.2 and after payment it does not redirect to site, also it doesn't make the ad premium neither add $ to your balance! i tried it on localhost, is this the reason it does not work?

lollek

  • Newbie
  • *
  • Posts: 6
Re: PAYMENT PLUGIN not writing anything in database
« Reply #3 on: August 20, 2014, 01:23:34 am »
I have the same Problem.
Any solution???