any chance of getting a drupal 7 version of this mod?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

laughnan’s picture

Working on a Drupal 7 patch right now...

laughnan’s picture

I have finished the code, I am getting a demo account approved through Virtual Merchant tomorrow to begin processing/testing the code in Drupal 7.

Alex

kumarangopi’s picture

Any update on this?

laughnan’s picture

I have been stuck in freelance projects. It should be done in less than a week. And by done I mean a dev version posted here.

coveryoureyes’s picture

Hey Alex! Is there any dev-version to try?

laughnan’s picture

@coveryoureyes

Should have it to you by December 6...it's on my external HD at work and I have been out for the past week.

Sorry for the delay.

::Alex

laughnan’s picture

Assigned: Unassigned » laughnan
Category: task » feature
Status: Active » Needs review
FileSize
10.59 KB

All -

Found a copy of the updated D7 zip file in my email. Please review. NOTE: This is ONLY a test version...I would NOT implement this on any production sites until you get me your feedback.

::Alex

laughnan’s picture

FileSize
10.59 KB

Updated D7 ZIP!

According to Issue: #804554: Setting the transaction mode to test is not effective

ssl_testmode --> ssl_test_mode

See attached

laughnan’s picture

The module that I uploaded did not have the ability to decide "Authorization only" or "Authorization & capture immediately"

It was ONE commit behind my latest git placement. Located here:

https://github.com/laughnan/Virtual-Merchant-7.x

until the VirtualMerchant module maintainer determines if it's good enough to move into the d.o. version control.

::Alex

coveryoureyes’s picture

Great work! I'm trying to use it in the test mode but still have a problems with authorisation on VM, probably my mistake. Thanks a lot Alex!

coveryoureyes’s picture

The code requests nonexistent key of array to generate a description of product for checkout (/cart/checkout/review):

Notice: Undefined index: attributes in function virtualmerchant_charge() (line 108 in file /home1/drevolif/public_html/drupal/sites/all/modules/virtualmerchant/virtualmerchant.module).

coveryoureyes’s picture

Another problem is that VM receives cyrillic description of order in wrong encoding. So it becomes like "¿¿¿¿ ¿¿¿¿ ¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿ x1".

coveryoureyes’s picture

After I click to review my order the browser is redirected to empty page. Not WSOD but totally "server does not respond". However transaction from credit card was made at that moment but order checkout still remained uncompleted (though I chose Test mode in module settings). And as I checked out VM's "Current Batches Main Response" money was received. At the page /admin/store/orders/view that order still has status "In checkout".

Probably this caused that error:

PHP Fatal error: Call to undefined function uc_price() in [...]/drupal/sites/all/modules/virtualmerchant/virtualmerchant.module on line 281

laughnan’s picture

Love this feedback @coveryoureyes!

I will adjust to these bugs.

laughnan’s picture

@coveryoureyes - What version of Ubercart are you currently using. Is your site in a language different than english?

coveryoureyes’s picture

@laughnan - I'm using the last stable version of Ubercart - 7.x-3.3 - and my site is in Russian.

jeremyclark’s picture

I have a ported version here: http://drupal.org/sandbox/JeremyClark/1910884. Feel free to use it and report any issues you have.

laughnan’s picture

Thanks for that @JeremyClark - I am going to test your code on my newly upgraded D7 site.

jgcblaine’s picture

FileSize
11.22 KB

I don't know if anyone has worked on this project. But I spent some time adjusting the code to make it work.

laughnan’s picture

Thanks @jgcblaine!

pfrilling’s picture

We just tested the code @jgcblaine provided with a real transaction and everything was charged correctly. Great job!

We did have some problems when trying to connect to the test server. We spoke with Virtual Merchant customer service and the testing URL needs to be the same as the production URL:

The code beginning on line 204

  // Set the proper URL based on the transaction mode.
  if (variable_get('virtualmerchant_transaction_mode', 'test') != 'production') {
    $url = 'https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do';
  }
  else {
    $url = 'https://www.myvirtualmerchant.com/VirtualMerchant/process.do';
  }

could be changed to:

  // Set the proper URL based on the transaction mode.
  if (variable_get('virtualmerchant_transaction_mode', 'test') == 'demo') {
    $url = 'https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do';
  }
  else {
    $url = 'https://www.myvirtualmerchant.com/VirtualMerchant/process.do';
  }
laughnan’s picture

Version: 6.x-1.0 » 7.x-1.0-beta1
Issue summary: View changes
Status: Needs review » Closed (fixed)

Created beta branch.