Hi-

It seems like the outcome of the payment is not getting logged - so while I can turn on the API logging and see Elavon's response in the Watchdog logs, even if it is successful it does not get entered as a 'payment' so the order is left set as 'pending'. Seems like it should be an entry with an outcome and transaction ID, creating a payment record if it is successful.

I'd like to help if I can, but don't really know where to start with this one.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wuinfo - Bill Wu’s picture

Category: Bug report » Feature request

This part was missing from beginning. My initial intention is to make the payment process as simple as possible. (By doing this: Any bugs after successful credit card processing will not preventing the fulfillment of the order.) "Pending" is the status whenever the payment was go through successfully.

I will change this iss to a "feature request".

jpamental’s picture

I'm trying to work out where to actually call 'hook_commerce_payment_transaction_insert()' so we can actually show that a payment has been successfully captured on a given order and am not having luck. Without this it's impossible to trigger other rules to send out email notifications, update the payment status for reports or execute other things like adding roles to users who buy access to content, etc.

I'd really appreciate it if you can help point me in the right direction here - it's critical to being able to use this module. Otherwise the site owner can't see what orders have been paid without logging in to the Elavon management console and manually tying things together.

Thanks-

Jason

jpamental’s picture

Just adding a bit more info.

When I edit an order as an admin and try to do a direct payment under the 'payments' tab, it does successfully process a payment through Elavon, but it does not record the payment as part of the order, so it still shows a balance due and looks like no payments have been made.

wuinfo - Bill Wu’s picture

On the other site using this module, order status will change from "Checkout: Review" => "Pending" whenever the payment was made successfully.

I thought that is enough.

I am a little bit busy at this moment. If you want to add something, you can also check other commerce payment modules, such as commerce_payleap. I think commerce_payleap is a great module.

wuinfo - Bill Wu’s picture

Apply it to the latest dev version. Need some more test and debug. You may use Devel module's dsm to find the proper value to be set in transaction.

jpamental’s picture

Thanks - will try that out and report back w/feedback.

Much appreciated!

jpamental’s picture

Initial test was successful - it logs the payment, stores the result bits (AVS match, etc) and once the payment has left a zero balance it is triggering the other rules for role assignment, etc.

I'll test it further this week and log anything else I can find.

Thank you!

wuinfo - Bill Wu’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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