Hi,
Unfortunately we cannot deploy a FTP.
I have tried to fix it myself. The problem is coming from the json format of the transactions, the "params" is not formated properly. It work if you remove the double quote, but without the double quote it causes an issue in case it is empty . This is a transaction example:
{"664":{"transaction_id":"664","user_id":"1026","invoice_id":"1036","current_invoice_id":"0","payment_id":"79","gateway_txn_id":"0","gateway_parent_txn":"0","gateway_subscr_id":"0","amount":"0.00000","reference":"","message":"COM_PAYPLANS_TRANSACTION_CREATED_FOR_WALLET_RECHARGE","created_date":"2014-06-26 14:09:27","params":"{"option":"com_payplans","gateway":"paypal","view":"payment","task":"notify","mc_gross":"3.00","invoice":"8O56WJCMA63O","protection_eligibility":"Eligible","address_status":"unconfirmed","payer_id":"CFMSU3452CG7KQ345WQ","tax":"0.00","address_street":"","payment_date":"07:23:41 May 13, 2015 PDT","payment_status":"Completed","charset":"windows-1252","address_zip":"","first_name":"ti45hfggfhwuk","mc_fee":"0.50","address_country_code":"ID","address_name":"","notify_version":"3.8","custom":"","payer_status":"verified","business":"xxx@xxx.com","address_country":"","address_city":"","quantity":"1","verify_sign":"A11hCuW2jv0cvfdhfgdfgaoyfsUIz4shGj31AzR37E5x5p6Rkynl5z6ysU54WeZC","payer_email":"xxx@gmail.com","contact_phone":"","txn_id":"8932475239529NH755234630N","payment_type":"instant","last_name":"abcd","address_state":"","receiver_email":"xxx@xxx.com","payment_fee":"","receiver_id":"B6F6GXSJE3XHY8YG","txn_type":"web_accept","item_name":"","mc_currency":"EUR","item_number":"8O56WJFHDJMQ0H0","residence_country":"ID","handling_amount":"0.00","transaction_subject":"","payment_gross":"","shipping":"0.00","ipn_track_id":"814fdhghdfghg3c2btrzrcaf7db","Itemid":null,"payment_key":"8O562543WJCMFSFA63O"}"}}
So you have to properly format the "params" that is a json string.
On my side I fixed the issue by amending the file \administrator\components\com_payplans\views\subscription\view.html.php line 113
from:
// Transactions
$invoiceModel = PP::model('Invoice');
$transactions = $invoiceModel->getTransactions($invoices);
to:
// Transactions
if ($id) {
$invoiceModel = PP::model('Invoice');
$transactions = $invoiceModel->getTransactions($invoices);
}
In my opinion, we do not need the transactions list in case of a "New subscription" form, but I can be wrong.
Please keep me updated.
Kind Regards,
Jerome