CiviCRM 5.3.1 with Omnipay extension 2.5
Added a PaymentExpress PxPay processor. After setting up a recur contribution for a contact the first payment is done successfully without any errors.
The second payment run by the scheduled job ProcessRecurring
only records a pending payment for the contact. The job log at civicrm/admin/joblog?jid=18&reset=1
shows only the starting of the execution message. There is no Finished
indication of the job so it seems it errored in between and aborted the execution.
There is a success message in the ConfigAndLog file at the same time when the above job was started at 00:41:45
-
Aug 10 00:41:46 [info] Contribution record updated successfully
Aug 10 00:41:46 [info] Success: Database updated
But, when I check the log tables, the contribution was never set to completed.
- If I execute the job manually the recur payment is completed successfully.
- If I manually run the
completetransation
API from the API explorer, it correctly completes the payment.
So there seems to be no way I can replicate this behaviour from my side. It is just that the automatic cron job fails to give the proper result. Shrug.
No error reporting in the system log table -
295 payment_notification processor_id=11 {"q":"civicrm/payment/ipn/761/11","result":"00001100039341640bfef9f4cb5d3c06","userid":"****","IDS_request_uri":"/civicrm/payment/ipn/761/11?result=00001100039341640bfef9f4cb5d3c06&userid=****","IDS_user_agent":"***"}
Can anyone point out what is wrong happening here?
UPDATE: There is no system log entry for the recur payment. It seems the return URL is not triggered when the job is executed.
completetransaction
API call, you're probably logged in as your own user with presumably some level of admin rights. When cron executes it, this may be using a different user account. Could this be explained by different permissions for the calling user?