Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Change abandon timeout, fix issue #76
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Lott / Artful Robot committed Apr 1, 2020
1 parent 074720f commit 327a860
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ to build a tool for their own needs from that.

## Change log

### 1.9.3 (unreleased)

- Reduce timeout for changing "Pending" recurring contributions to "Failed" from 24 hours to 0.66 hours. See https://github.com/artfulrobot/uk.artfulrobot.civicrm.gocardless/issues/76 You can still override this as a parameter, should you wish.

### 1.9.2

- Move to `Payment.create` API instead of older (and deprecated) `Contribution.completetransaction` API.
Expand Down
2 changes: 1 addition & 1 deletion api/v3/Job/Gocardlessfailabandoned.mgd.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
array(
'version' => 3,
'name' => 'GoCardless: mark abandoned Pending recurring contributions Failed',
'description' => 'If a user starts to donate but abandons on the GoCardless page their ContributionRecur record gets stuck at Pending/Incomplete. This job marks those as Failed after 24 hours so you can see abandoned payments.',
'description' => 'If a user starts to donate but abandons on the GoCardless page their ContributionRecur record gets stuck at Pending/Incomplete. This job marks those as Failed after 40 mins (GoCardless only allows 30 mins to complete a redirect flow) so you can see abandoned recurring contributions. You may choose to lengthen the interval to 1.5 hours if you want to allow for someone setting up a mandate at the cusp of a daylight saving hour change.',
'run_frequency' => 'Always',
'api_entity' => 'Job',
'api_action' => 'Gocardlessfailabandoned',
Expand Down
4 changes: 2 additions & 2 deletions api/v3/Job/Gocardlessfailabandoned.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/
function _civicrm_api3_job_Gocardlessfailabandoned_spec(&$spec) {
$spec['timeout']['description'] = 'How long (hours) before we consider '
. 'Pending ContributionRecur records as abandoned. Default: 24';
$spec['timeout']['api.default'] = 24;
. 'Pending ContributionRecur records as abandoned. Default: 0.66 (c40 mins)';
$spec['timeout']['api.default'] = 0.66;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-03-24</releaseDate>
<version>1.9.2</version>
<version>1.9.3</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down

0 comments on commit 327a860

Please sign in to comment.