Custom Payment Processing

Posts: 49
Joined: 12/12/2007
Bug Finder

We are working on a project where we are pulling the data from a clients accounting system and then letting a user review their open invoices in Drupal and make a payment.

I was wondering if it would be possible to user Ubercart to handle the checkout and payment process. Basically feeding in the amount of the payment to the Ubercart checkout process.

Another option would be that we could treat each open invoice as a product in the shopping cart since they do not want to accept partial payments only complete invoices. The issue would be we would have to create the product on the fly since the price would always be different for each users invoices.

Thanks and looks like a great product!

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I think I'd make a similar recommendation to my comments on this post at Drupal.org. Basically, if you create a product called "invoice payment" or something similar with an attribute called invoice # and no options, you should be able to use the cart links module to create a button on someone's invoice that will add the payment product to the cart w/ the correct invoice # and send them to checkout. You'll need a custom module to load up the invoice using hook_cart_item() and the invoice # you specify and adjust the price of the item accordingly. I'd say it's maybe a couple hours' work to get a going.

Posts: 49
Joined: 12/12/2007
Bug Finder

So to clarify, can a product then have a per instance price that is only for that particular cart/checkout?

Since invoice amount will change with each user.

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

If you're loading that price based on some value for that product (like an invoice number) with the hook I mentioned, then it will be a per instance price. You'll need to do some authentication on it, but I don't foresee any trouble with it.