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

Time limit for pending recurring contributions #76

Closed
mattwire opened this issue Mar 25, 2020 · 4 comments
Closed

Time limit for pending recurring contributions #76

mattwire opened this issue Mar 25, 2020 · 4 comments
Milestone

Comments

@mattwire
Copy link
Contributor

Given that it is stated here https://developer.gocardless.com/api-reference/#core-endpoints-redirect-flows that redirect flows expire after 30 minutes shouldn't the Job.Gocardlessfailabandoned "fail" them after 30 minutes instead of 24 hours?

@artfulrobot
Copy link
Owner

Yes, thanks @mattwire that makes sense.

The default expiry is set in _civicrm_api3_job_Gocardlessfailabandoned_spec(). We should update the documentation (README) too.

I'd favour a more cautious aproach of 0.6 hours - i.e. something slightly over 30 mins. We don't want to reduce the window ourselves - e.g. someone gets to the page where they enter their details, goes off to find their card, gets distracted...

Also, do you think we should allow an extra hour for that poor person who

  • starts a redirct flow at 01:59
  • clocks go forward 1 hour at 02:00
  • their redirect flow gets invalidated by cron
  • they try and fail to complete redirect flow

Because the comparison is just done with activity date time strings and date(Y-m-d H:i:s)

I don't really mind, just noting the possibilities.

@mattwire
Copy link
Contributor Author

I'm going to close this as I realise it's already available as a parameter to the job. Also you can easily detect a failed vs. a successful signup because it goes Pending->In Progress as soon as it is setup.

@artfulrobot
Copy link
Owner

Yeah, but your failed metrics will include those in process of submitting the forms. Which is likely a small error but maybe still important depending on what you do with the result! I think still useful to reduce the default timeout.

@artfulrobot artfulrobot reopened this Mar 29, 2020
artfulrobot pushed a commit that referenced this issue Apr 1, 2020
@artfulrobot artfulrobot added this to the 1.9.3 milestone Apr 1, 2020
@mattwire
Copy link
Contributor Author

mattwire commented Apr 1, 2020

Thanks @artfulrobot :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants