Jump to content

Reversed payments


hushcat

Recommended Posts

I'm developing a payment gateway for WHMCS to use a bank provided system for collections. It collects payment details on checkout and on the last day of the month all invoices with valid payments details on this gateway are processed in a batch and marked as paid using the addInvoicePayment function. For most cases, this is where it ends.

 

The bank usually has issues with some payments and sends a file with the details a couple of days later which has some payments reversed. This is very similar to a chargeback, though not exactly the same.

 

I'd like to have a feature where I can upload this file and reverse these payments. I'm just not sure of the correct way of doing this, should I call addInvoicePayment again with a negative amount or should I just mark it as unpaid?

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