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
| Comment | File | Size | Author |
|---|---|---|---|
| commerce_authnet_simdpm_capture.zip | 4.14 KB | Everett Zufelt |
Comments
Comment #1
jerry commentedInteresting, thanks. I'll certainly review it for integration into the module.
Comment #2
Everett Zufelt commentedI'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.
Comment #3
jerry commentedThat 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?
Comment #4
Everett Zufelt commentedSure. 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?
Comment #5
jerry commentedOK, 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.
Comment #6
jerry commentedComment #7
Everett Zufelt commentedCommitted as a sub-module in http://drupalcode.org/project/commerce_authnet_simdpm.git/commit/3051b57
Comment #9
derelict-en_us commentedTrying 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.
Comment #9.0
derelict-en_us commentedAdded sponsored by