By Kai Roen on Tuesday, 27 March 2018
Posted in Payment Gateways
Replies 19
Likes 0
Views 809
Votes 0
I have a site that uses the NETS Payment Gateway from StackIdeas.
For recurring payments, there are no option for cancel subscription/payment.

Could you give me some details on how to stop a subscription for next renewal?
If this is something that you can not fix, I have to fix it myself. But I need some more details on how this subscriptions and payment works in PayPlans.
Hello Kai,

Right now Payplans nets's payment integration don't support recurring cancellation through site itself. So in that case you need to cancel recurring payment from your merchant account or user can cancel from their account itself.

Cancellation depends on the payment gateway, if they support cancellation through api then we add it otherwise you need to cancel from your merchant account. right now in net's api cancellation method is not supported (api using for payment's).

Once you cancel the subscription at net's , so next payment will not come and subscription will get expire on expiration date set by previous payment.

Let me know if you have any query.
·
Tuesday, 27 March 2018 17:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Manisha for your quick response.
I will follow up this issue with NETS support, because the site need a cancellation procedure on the site. The user should be able to stop his/her subscription. This is a very basic task that should be implemented, but I understand this need to be supported by the payment gateway.
·
Tuesday, 27 March 2018 18:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kai,

Thanks for understanding this
·
Tuesday, 27 March 2018 18:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,
We need to have an option to stop a subscription in Payplans, and I was wondering if I could do this myself by modify the database?

I just need a button to stop the recurring payments, and was wondering if it suffient to update the params column in "Payment" table, and replace the PanHash with {} for the invoice/user? If the PanHash is {}, then the payment will not be renewed?
·
Tuesday, 03 April 2018 21:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kai,

For add cancellation in code do the below mentioned change , if it works for you , but it will not change anything on merchant site. Payment cancelled on payplans only.

1. Go to root/plugins/payplans/nets/nets/app/nets/nets.xml, add below mentioned code in fields after this (see attached screenshot)

<field name="allow_recurring_cancel"
default="0"
type="radio"
class="btn-group"
label="Allow Recurring Cancellation"
description="Setting to Yes will allow user and admin to Cancel the Recurring Order">
<option value="1">COM_PAYPLANS_YES</option>
<option value="0">COM_PAYPLANS_NO</option>
</field>


After this change edit the app instance and set this option to Yes.

2. Go to root/plugins/payplans/nets/nets/app/nets/nets.php, add below mentioned code at after function named doRegister

public function isSupportPaymentCancellation($invoice)
{
if($invoice->isRecurring()){
return true;
}
return false;
}

public function onPayplansPaymentTerminate(PayplansPayment $payment, $controller)
{
parent::onPayplansPaymentTerminate($payment, $controller);
return $this->_render('cancel_success');
}


Try this solution and let me if it's working in your case.Update me with response.
·
Wednesday, 04 April 2018 13:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Manisha,
I think it is more convenient to have this function in Payplans Dashboard in frontend, because the user need to stop the recurring subscription and payment for an existing subscription.
·
Wednesday, 04 April 2018 13:24
·
0 Likes
·
0 Votes
·
0 Comments
·
This option will shown on frontend also . in Payplans user dashboard alon with subscription , cancel option will shown.
Please add attached file on below mentioned path.
root/plugins/payplans/nets/nets/app/nets/tmpl

Let me know if you have any query.
·
Wednesday, 04 April 2018 14:06
·
0 Likes
·
0 Votes
·
0 Comments
·
In backend, I am getting this error when cancelling:

An error has occured
<strong>AJAX Loading Error</strong><br/>HTTP Status: 500 (Internal Server Error)<br/>Internal status: error<br/>XHR ReadyState: 4<br/>Raw server response:<br/><!DOCTYPE html>
·
Wednesday, 06 June 2018 20:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you update us your site's admin password, so i can check this issue.
·
Thursday, 07 June 2018 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Password now updated.
The transaction that should be stopped is:

InvoiceID = 7578
Transaction ID = 9285
Subscription ID = 6427
·
Thursday, 07 June 2018 14:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kai,

I've already fixed this issue at your end.
Please take a look on this and let me know if still issue persist.
·
Thursday, 07 June 2018 14:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
did you stop the recurring payment for this subscription?
I do not see any status in Payplans
·
Thursday, 07 June 2018 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kai,

Yes, i cancelled this subscription. After cancellation , Order status will be marked as cancelled , subscription status will remain active till expiration date. Order is related to subscription , if order status marked as cancelled then further recurring payment request will not initiated.
See attached screen shot.

Let me know if you have any query.
·
Thursday, 07 June 2018 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post