Hi,

I've updated the module code [for more details see https://drupal.org/node/2070457] to create and set the payment transaction to order and I'm also updating the payment transaction status depending on the response received from payment gateway.

But the only problem I'm having right now is updating the order status to completed/failure/pending. I've found a rule "Update the order status on checkout completion" which was updating the order status to pending. I've added a condition in this rule to check if the order payment is less than or equal to 0 then update the order status to completed. But if the payment fails, then the order status is remaining to "checkout: completed".

I've also checked if there is any condition in rule which will allow me to see if the order status is failed or success but didn't find such condition.

Does any one know how can I update the order status in Drupal Commerce on checkout completion.

Yogesh

CommentFileSizeAuthor
#1 commerce_ccavenue.module.patch8.56 KByogeshchaugule8
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yogeshchaugule8’s picture

Status: Active » Needs review
FileSize
8.56 KB

I've created a patch for the 7.x-1.x GIT code, because I was not able to create a patch for downloadable source code of the module, because I'm not using any version control for this project.

The patch contains the code to create/update payment transaction and update the order status after adding/updating payment transaction.

@quardz, If you've a good idea about commerce, you can review it before applying. Also let me know if there is any other better way to do it.

Note: The patch must need to be applied manually since the 7.x-1.x branch code in repository doesnot work.

Yogesh

sudishth’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

actually CCAvenue changed API so please check latest