From dc114fb9e07081d41c9b4155fae8ac57440435d3 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 1 Feb 2017 18:21:28 -0500 Subject: [PATCH] By default send cancel req. to payment processor When cancelling a payment through the Civi interface, the cancellation request should be sent to the payment processor by default. To that end, I've set the "Yes" option to be selected by default on the recurring contribution cancellation form. When using a payment processor such as TrustCommerce, they need to know about the cancellation in order to stop future payments. --- CRM/Contribute/Form/CancelSubscription.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/CancelSubscription.php b/CRM/Contribute/Form/CancelSubscription.php index 5ded40fa3d..91d08a2007 100644 --- a/CRM/Contribute/Form/CancelSubscription.php +++ b/CRM/Contribute/Form/CancelSubscription.php @@ -191,7 +191,8 @@ class CRM_Contribute_Form_CancelSubscription extends CRM_Core_Form { * array of default values */ public function setDefaultValues() { - $defaults = array('is_notify' => 1); + $defaults = array('is_notify' => 1, + 'send_cancel_request' => '1'); return $defaults; } -- 2.25.1