Jump to content

Nifty Direct Debit/Gocardless Module Error


D9Hosting

Recommended Posts

Just wondering if anyone else has noticed problems with this module receiving callbacks from Gocardless since August 11th?

I noticed a few days ago a strange lack of direct debit payments being received and on checking in our GC account any callback sent to the module is generating the following error:

498 Token expired/invalid

I've generated new live tokens and webhook endpoints, re-uploaded all the module files but the issue remains. There is nothing showing up in the WHMCS module log, and in the gateway log all I am seeing are lots of entries saying:

Callback verification failed (Invalid Token) : 

Payment requests and setting up new mandates still work fine, it's just the payment callbacks that aren't working. I've got a ticket open with the creator of the module but so far haven't had a response. 

I did also open a ticket with GC who said:

Quote

 

I have had a look into this for you and I can see that the webhook has returned the error: 498 Token expired/invalid.

It looks like there is some issue with calculating the signature correctly. 

It should be calculated on the entire request body, see here for further detail. As a next step, we would recommend reviewing how the signature is being calculated. 

 

Anyone got any idea what the issue could be? From our end nothing has changed since it stopped working so it's a bit of a head scratcher and for now we are having to go through and manually cross reference all paid invoices in GC with those in WHMCS and mark them as paid.

 

Link to comment
Share on other sites

Just to update the thread for anyone else who comes across the same error - I've fixed the issue by disabling Cloudflare on the domain running our WHMCS installation. Neither Gocardless, nor Cloudflare have any idea why Cloudflare would be interfering with the API callbacks but at least things are working again!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated