Im using ppext extension for paypal, it is great. But, everything works on localhost test server.
When I upload to live server, buttonmanager won’t save buttons in database.
$nvp = array(
'BUTTONTYPE'=>'BUYNOW',
'L_BUTTONVAR0'=>'currency_code=EUR', //get currency from database settings
'L_BUTTONVAR1'=>'item_name=' . $model->name, //project name
'L_BUTTONVAR2'=>'item_number=' . $donation->idproject_donations, //donation database ID
'L_BUTTONVAR3'=>'amount=' . $donation->amount
);
$bMan->createButton($model->name . $nmb, $nvp);
this works on localhost, but on live server it doesn’t!
i’m using this in my view file:
<a href="<?php echo $bm->getButton($donation->buttonID)->emailLink . '&custom=' . Yii::app()->user->id; ?>" class="projectbid">
where $donation->button id is an int value from another table, which stores other information about payment,
so I search for button via $donation->buttonID table, and get that ID using button manager.
that part works!
but when creating new donation on live server the
$bMan_createButton(…)
doesn’t work, doesn’t insert new records in ppbutton table (table for ppext extension).
Help me, I lost whole 3 days searching for error in this.
My live server supports, PHP 5.2, 5.3, 5.4… i tried them all - siply put, buttonManager on live server wont save to database.
I have the Rights extension enabled, could it be it makes problems?