Authorize.net DPM problem

  • Posts: 17
  • Thank you received: 0
9 years 9 months ago #189483

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37
-- Browser(s) name and version -- : Chrome 39.0.2171.95m

Hi

We use Authorize.net as our gateway and for PCI compliance we need to have HikaShop API set to DPM but when it is set to that it causes a blank screen, i attached a screen shot of the cart

We bought and convert to HikaShop Business for all of the extension functions as well as ease of use but we have run into this huge roadblock. We did not see the API as being this big issue??

Your thoughts to this solution is need

Kevin

Note: I reset the API back to SIM so we can still receive order

Attachments:
Last edit: 9 years 9 months ago by essential.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #189573

Hello,
We won't be able to know from where your issue is coming from without directly testing through your website, can you give us through a private message a temporary back-end access ?
Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #189704

Hello,
We just fixed an issue regarding the Authorize.net DPM mode, you should edit the "plugins\hikashoppayment\authorize\autorize.php" file and change these lines :

else{
$this->payment_params->iframe = 1;
$vars = $this->_loadStandardVars($order);
$viewType = 'end';
$vars["x_show_form"] = 'PAYMENT_FORM';
if(@$this->payment_params->notification){
	$vars["x_relay_response"] = 'TRUE';
	$vars["x_relay_url"] = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=authorize&tmpl=component&lang='.$this->locale.$this->url_itemid;
}
$vars["x_fp_sequence"] = $vars["x_invoice_num"];
$vars["x_fp_timestamp"] = time();
$vars["x_fp_hash"] = hash_hmac("md5", $vars["x_login"] . "^" . $vars["x_fp_sequence"] . "^" . $vars["x_fp_timestamp"] . "^" . $vars["x_amount"] . "^" . $vars["x_currency_code"], $this->payment_params->transaction_key);
if(!empty($this->payment_params->x_logo_url)){
	$vars['x_logo_url']=$this->payment_params->x_logo_url;
}
$this->vars = $vars;
}
By :
else{
$vars = $this->_loadStandardVars($order);
$viewType = 'end';

$this->payment_params->iframe = 1;

$vars["x_show_form"] = 'PAYMENT_FORM';
if(@$this->payment_params->notification){
	$vars["x_relay_url"] = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=authorize&tmpl=component&lang='.$this->locale.$this->url_itemid;
	$vars["x_relay_response"] = 'TRUE';
}
if($this->payment_params->api == 'dpm') {
	$vars["x_relay_url"] = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=authorize&x_po_num=' . (int)$order->order_id . '&tmpl=component&lang='.$this->locale.$this->url_itemid;
}
$vars["x_fp_sequence"] = $vars["x_invoice_num"];
$vars["x_fp_timestamp"] = time();
$vars["x_fp_hash"] = hash_hmac("md5", $vars["x_login"] . "^" . $vars["x_fp_sequence"] . "^" . $vars["x_fp_timestamp"] . "^" . $vars["x_amount"] . "^" . $vars["x_currency_code"], $this->payment_params->transaction_key);
if(!empty($this->payment_params->x_logo_url)){
	$vars['x_logo_url']=$this->payment_params->x_logo_url;
}
$this->vars = $vars;
}
Thanks.

Last edit: 9 years 9 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #189809

Hello,
Did you correctly add that fix on your Authorize.net plugin file ?

Oh I did not ask but did you the plugin corrected to make DPM work?

The fix that I gave your fixed the issue that I was having with the DPM mode.

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0
9 years 9 months ago #189836

Mohamed

yes i changed the API setting to DPM...now here is what it looks like. see attachment.
We will put it on SIM mode temporarily until you resolve the issue.

I also changed the authorize.php with the code you provided.

P.S. i sent you access to both HikaShop backend and FTP through private mail.

Attachments:
Last edit: 9 years 9 months ago by essential. Reason: adding explanations

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #190034

Hello,
If you are using a SEF module / SEF options, can you disable it and try it again so that we can know if it's coming from it ?

Please Log in or Create an account to join the conversation.

  • Posts: 195
  • Thank you received: 13
  • Hikashop Business
9 years 9 months ago #190114

Hi Mohamed -
We have applied the change to authorize.php as you've provided for Kevin's website. I have also disabled SEF urls and turned debug on within the a.net plugin. The iframe is now posting the homepage ... still no authorize.net credit card form.

Here is the debug info:

Array ( [option] => com_hikashop [ctrl] => checkout [task] => notify [notif_payment] => authorize [x_po_num] => 73 [tmpl] => component [lang] => en [Itemid] => 465 [iframe] => eyJ4X2Ftb3VudCI6MTMuNTgsInhfdmVyc2lvbiI6IjMuMSIsInhfdGVzdF9yZXF1ZXN0IjoiVFJVRSIsInhfcmVsYXlfcmVzcG9uc2UiOiJUUlVFIiwieF9jdXN0b21lcl9pcCI6IjI0LjE1MS4xOTMuNTMiLCJ4X3R5cGUiOiJBVVRIX0NBUFRVUkUiLCJ4X2xvZ2luIjoiN3VueVozN1lRTTMiLCJ4X2ludm9pY2VfbnVtIjo3MywieF9wb19udW0iOjczLCJ4X2VtYWlsIjoiYnJpZGdldHRlQDNieTQwMC5jb20iLCJ4X2ZpcnN0X25hbWUiOiJCcmlkZ2V0dGUiLCJ4X2xhc3RfbmFtZSI6IkFuZGVyc29uIC0gM2J5NDAwIiwieF9hZGRyZXNzIjoiMTIzIE1haW4gU3QiLCJ4X2NvbXBhbnkiOmZhbHNlLCJ4X2NvdW50cnkiOiJVbml0ZWQgU3RhdGVzIG9mIEFtZXJpY2EiLCJ4X3ppcCI6IjMwNTMzIiwieF9jaXR5IjoiRGFobG9uZWdhIiwieF9zdGF0ZSI6Ikdlb3JnaWEiLCJ4X3Bob25lIjoiMTIzLTEyMy0xMjM0IiwieF9zaGlwX3RvX2ZpcnN0X25hbWUiOiJCcmlkZ2V0dGUiLCJ4X3NoaXBfdG9fbGFzdF9uYW1lIjoiQW5kZXJzb24gLSAzYnk0MDAiLCJ4X3NoaXBfdG9fYWRkcmVzcyI6IjEyMyBNYWluIFN0IiwieF9zaGlwX3RvX2NvbXBhbnkiOmZhbHNlLCJ4X3NoaXBfdG9fY291bnRyeSI6IlVuaXRlZCBTdGF0ZXMgb2YgQW1lcmljYSIsInhfc2hpcF90b196aXAiOiIzMDUzMyIsInhfc2hpcF90b19jaXR5IjoiRGFobG9uZWdhIiwieF9zaGlwX3RvX3N0YXRlIjoiR2VvcmdpYSIsInhfbGluZV9pdGVtIjpbIkVzc2VudGlhbF9DbG90aCAyIENsb3RoPHw+RXNzZW50aWFsIENsb3RoIDIgQ2xvdGhzICAgPHw+PHw+MTx8PjEzLjU4PHw+RkFMU0UiXSwieF90YXhfZXhlbXB0IjoiVFJVRSIsInhfc2hvd19mb3JtIjoiUEFZTUVOVF9GT1JNIiwieF9yZWxheV91cmwiOiJodHRwOlwvXC93d3cuZXNzZW50aWFsY2xvdGguY29tXC9pbmRleC5waHA/b3B0aW9uPWNvbV9oaWthc2hvcCZjdHJsPWNoZWNrb3V0JnRhc2s9bm90aWZ5Jm5vdGlmX3BheW1lbnQ9YXV0aG9yaXplJnhfcG9fbnVtPTczJnRtcGw9Y29tcG9uZW50Jmxhbmc9ZW4mSXRlbWlkPTQ2NSIsInhfZnBfc2VxdWVuY2UiOjczLCJ4X2ZwX3RpbWVzdGFtcCI6MTQyMzUwODg4NCwieF9mcF9oYXNoIjoiMDcyZmMyNTQxOWZjMWIyMzM4YmI2NzRkNTdhNGYyZjYifQ== [fd4e79e1f1947bf4686df350583e305b] => b2d169e22de9f220d540f173ede25bde [2b842751e5bd54b10ec2f5597b466fc6] => 2f828868323a491b82a8faa5098c8651 [hikashop_front_end_main] => 1 [view] => checkout ) stdClass Object ( [order_id] => 73 [order_billing_address_id] => 1 [order_shipping_address_id] => 1 [order_user_id] => 7 [order_status] => created [order_type] => sale [order_number] => D7E3 [order_created] => 1423508884 [order_modified] => 1423508884 [order_invoice_id] => 0 [order_invoice_number] => [order_invoice_created] => 0 [order_currency_id] => 2 [order_full_price] => 13.58000 [order_tax_info] => Array ( ) [order_discount_code] => [order_discount_price] => 0.00000 [order_discount_tax] => 0.00000 [order_payment_id] => 1 [order_payment_method] => authorize [order_payment_price] => 0.00000 [order_payment_params] => [order_shipping_id] => 3 [order_shipping_method] => manual [order_shipping_price] => 0.00000 [order_shipping_tax] => 0.00000 [order_shipping_params] => stdClass Object ( [prices] => Array ( [3@0] => stdClass Object ( [price_with_tax] => 0.00000 [tax] => 0 ) ) ) [order_partner_id] => 0 [order_partner_price] => 0.00000 [order_partner_paid] => 0 [order_partner_currency_id] => 0 [order_ip] => 24.151.193.53 [order_site_id] => [cart] => stdClass Object ( [billing_address] => stdClass Object ( [address_id] => 1 [address_user_id] => 7 [address_title] => Mrs [address_firstname] => my_name [address_middle_name] => [address_lastname] => my_last_name - 3by400 [address_company] => [address_street] => 123 Main St [address_street2] => [address_post_code] => my_zip [address_city] => my_city [address_telephone] => 123-123-1234 [address_telephone2] => [address_fax] => [address_state] => stdClass Object ( [zone_id] => 4271 [zone_namekey] => state_Georgia_4271 [zone_name] => Georgia [zone_name_english] => Georgia [zone_code_2] => [zone_code_3] => GA [zone_type] => state [zone_published] => 1 [zone_currency_id] => 0 ) [address_country] => stdClass Object ( [zone_id] => 223 [zone_namekey] => country_United_States_of_America_223 [zone_name] => United States of America [zone_name_english] => United States of America [zone_code_2] => US [zone_code_3] => USA [zone_type] => country [zone_published] => 1 [zone_currency_id] => 2 ) [address_published] => 1 [address_vat] => [address_default] => 1 ) [fields] => Array ( [address_title] => stdClass Object ( [field_id] => 1 [field_table] => address [field_realname] => Title [field_namekey] => address_title [field_type] => singledropdown [field_value] => Mr::HIKA_TITLE_MR Mrs::HIKA_TITLE_MRS Miss::HIKA_TITLE_MISS Ms::HIKA_TITLE_MS Dr::HIKA_TITLE_DR [field_published] => 1 [field_ordering] => 1 [field_options] => a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_firstname] => stdClass Object ( [field_id] => 2 [field_table] => address [field_realname] => Firstname [field_namekey] => address_firstname [field_type] => text [field_value] => [field_published] => 1 [field_ordering] => 2 [field_options] => a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_lastname] => stdClass Object ( [field_id] => 4 [field_table] => address [field_realname] => Lastname [field_namekey] => address_lastname [field_type] => text [field_value] => [field_published] => 1 [field_ordering] => 4 [field_options] => a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_street] => stdClass Object ( [field_id] => 6 [field_table] => address [field_realname] => Street [field_namekey] => address_street [field_type] => text [field_value] => [field_published] => 1 [field_ordering] => 6 [field_options] => a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_city] => stdClass Object ( [field_id] => 9 [field_table] => address [field_realname] => City [field_namekey] => address_city [field_type] => text [field_value] => [field_published] => 1 [field_ordering] => 8 [field_options] => a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_state] => stdClass Object ( [field_id] => 13 [field_table] => address [field_realname] => State [field_namekey] => address_state [field_type] => zone [field_value] => [field_published] => 1 [field_ordering] => 9 [field_options] => a:6:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:9:"zone_type";s:5:"state";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => state_Rh__ne_1375 [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_country] => stdClass Object ( [field_id] => 14 [field_table] => address [field_realname] => Country [field_namekey] => address_country [field_type] => zone [field_value] => [field_published] => 1 [field_ordering] => 10 [field_options] => a:12:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:9:"filtering";s:1:"1";s:9:"maxlength";s:1:"0";s:4:"rows";s:0:"";s:9:"zone_type";s:7:"country";s:12:"pleaseselect";s:1:"0";s:4:"size";s:0:"";s:6:"format";s:0:"";s:5:"allow";s:0:"";s:8:"readonly";s:1:"0";s:15:"limit_to_parent";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => country_United_States_of_America_223 [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_post_code] => stdClass Object ( [field_id] => 8 [field_table] => address [field_realname] => Post code [field_namekey] => address_post_code [field_type] => text [field_value] => [field_published] => 1 [field_ordering] => 11 [field_options] => a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 0 [field_default] => [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) [address_telephone] => stdClass Object ( [field_id] => 10 [field_table] => address [field_realname] => Telephone [field_namekey] => address_telephone [field_type] => text [field_value] => [field_published] => 1 [field_ordering] => 14 [field_options] => a:5:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";} [field_core] => 1 [field_required] => 1 [field_default] => [field_access] => all [field_categories] => all [field_with_sub_categories] => 0 [field_frontcomp] => 1 [field_backend] => 1 [field_backend_listing] => 0 [field_display] => ) ) [shipping_address] => stdClass Object ( [address_id] => 1 [address_user_id] => 7 [address_title] => Mrs [address_firstname] => Bridgette [address_middle_name] => [address_lastname] => Anderson - 3by400 [address_company] => [address_street] => 123 Main St [address_street2] => [address_post_code] => 30533 [address_city] => Dahlonega [address_telephone] => 123-123-1234 [address_telephone2] => [address_fax] => [address_state] => stdClass Object ( [zone_id] => 4271 [zone_namekey] => state_Georgia_4271 [zone_name] => Georgia [zone_name_english] => Georgia [zone_code_2] => [zone_code_3] => GA [zone_type] => state [zone_published] => 1 [zone_currency_id] => 0 ) [address_country] => stdClass Object ( [zone_id] => 223 [zone_namekey] => country_United_States_of_America_223 [zone_name] => United States of America [zone_name_english] => United States of America [zone_code_2] => US [zone_code_3] => USA [zone_type] => country [zone_published] => 1 [zone_currency_id] => 2 ) [address_published] => 1 [address_vat] => [address_default] => 1 ) ) )


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #190184

Hello,
Can you test it with that authorize.net version ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 195
  • Thank you received: 13
  • Hikashop Business
9 years 9 months ago #190833

Mohamed - We have thoroughly tested this version and we are receiving the following error instead of a credit card form:


The following errors have occurred.
(13) The merchant login ID or password is invalid or the account is inactive.

We have contacted Authorize.net and they have verified that all credentials being used are valid and the account is active. We have also verified this by testing the AIM method. The plugin's AIM method works as expected with the exact same credential configuration.

Authorize.net says this error is a result of the form being posted to the wrong URL. The URL should be secure.authorize.net/gateway/transact.dll and this is the URL we have in the plugin's URL field. It seems the DPM version is not posting to this URL, however.


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters
Last edit: 9 years 9 months ago by 3by400.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #190889

Hello,
The request is actually posted to secure.authorize.net/gateway/transact.dll, I tested it and I'm facing the same issue (with invalid login so having that issue is a normal behavior).
You should probably ask them again, because if your account is valid, and that we are correctly posting our request to secure.authorize.net/gateway/transact.dll , asking them will probably help.

Please Log in or Create an account to join the conversation.

  • Posts: 195
  • Thank you received: 13
  • Hikashop Business
9 years 8 months ago #194590

Mohamed -

Authorize.net has re-verified all account information. The account information is correct. Also, the error only appears when the DPM method is selected in the hikashop authorize.net payment plugin, meaning that the same account information is working fine for the AIM method. So this seems to point to an issue with the DPM method in the plugin.


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 8 months ago #194685

Ok, can you give me a temporary access to your back through a private message so that I can directly test it ?
Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0
9 years 8 months ago #195075

I email/message the information you requested

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 8 months ago #195172

I'm currently having a "Username and password do not match or you do not have an account yet." when I try to access to your back-end.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 8 months ago #195689

I just succeed to reproduce your issue, so I'll test / fix it and get back to you as fast as possible.

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0
9 years 8 months ago #195735

Ok.

Please Log in or Create an account to join the conversation.

  • Posts: 195
  • Thank you received: 13
  • Hikashop Business
9 years 7 months ago #197110

HI Mohamed -

Do you have an update on this? Thanks!


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 7 months ago #197129

Sure, can you test it with that last version of the Authorize.net plugin ?

Attachments:
Last edit: 9 years 7 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0
9 years 7 months ago #198489

Mohamed

We uploaded the new Authorize plugin 04-02-2015 but we got some glitches.
1) it does not show that a customer can pay with AMEX or JB bank card
2) after putting in cc information the next screen is blank! Nothing that inform the customer if the transaction was approved or decline just the INVALID word.

That is the update the DPM issue

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0
9 years 7 months ago #198490

Mohamed

I forgot to send screenshots

Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds
Powered by Kunena Forum