When a payment transaction is completed using DPM and auth_only it is necessary for the merchant to log into their Authorize.net account to capture the funds related to the transaction. The attached module provides the ability to Capture funds from the payment UI. Most of the code in this module is taken from the commerce_authnet module.

Please consider merging this into the commerce_authnet_simdpm module in a future release.

Sponsored by Spartan Stores and Myplanet Digital

Comments

jerry’s picture

Assigned: Unassigned » jerry

Interesting, thanks. I'll certainly review it for integration into the module.

Everett Zufelt’s picture

I've recently added a couple of lines to the form submit handler that updates order status on successful capture from pending to processing. As this is not a universal workflow I'd like to actually refactor this to add Rules support, so that there is a Rules event 'After successful capture transaction with Authorize.net' That way site builders can define their own Rules based workflow on success.

If you are interested in integration I can write this and send it along.

jerry’s picture

That does sound worthwhile.

As I'm busy at present with projects not related to Drupal Commerce, it would help to move things along to have you more directly involved with the maintenance of this module. Would you be interested in co-maintaining it?

Everett Zufelt’s picture

Sure. I'd be happy to merge in this work, with the rule implementation. We are also looking at a Refund action for the payments, but are deciding about how to handle void/credit transactions.

Should we branch a 7.x-2.x for the new features, or remain on 1.x?

jerry’s picture

OK, you're on the maintainer list. Thanks for helping out.

I don't have a strong feeling about branching, but it might make maintenance a little easier to stay at 1.x and add the AIM-based operations as a submodule. If your implementation suggests that a tighter integration and a reorg of the existing code is appropriate, then feel free to go ahead and branch it. Note that there are a few committed but unreleased changes in the dev branch at present.

jerry’s picture

Assigned: jerry » Everett Zufelt
Status: Needs review » Postponed
Everett Zufelt’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

derelict-en_us’s picture

Trying this submodule. Getting:

Prior authorization capture failed, so the transaction will remain in a pending status.
(TESTMODE) A valid referenced transaction ID is required.

Nevermind. This appears to be just the way Authorize.Net's test mode works.

Thanks.

derelict-en_us’s picture

Issue summary: View changes

Added sponsored by