Checkout: Please complete your payment information

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #249360

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.5.38
-- Browser(s) name and version -- : FF/Chrome - updated
-- Error-message(debug-mod must be tuned on) -- : no error display

I have removed collection of addresses from the Checkout flow as the client does not want that information collected on the website but wants all of this entered on Authorize.net. However, now when either logged in or a new user registers on the checkout page, when we click the 'Checkout and complete payment', it displays "Please complete your payment information" and does not go to Authorize.net to complete the purchase.

Checkout flow is "Cart > Login > Coupon > Payment"

I can't remove payment as that is required to collect payment otherwise it completes the order and no funds are collected.

Any idea why this display is popping up?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #249362

Hi,

Authorize.net like a lot of other payment methods need the billing address to process the transaction.
These fields are mandatory due to some legal obligations regarding to the billing address.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #249431

Jerome,

I've restored the collection of address information but, now, for some reason, it shows an 'Authorize' button with the credit card icons and I have to actually click the 'Authorze' button, then click the submit (renamed to Checkout and Complete Payment) twice before it tries to go to Authorize.net. Now I get that "The following errors have occurred. (14) The referrer, relay response or receipt link URL is invalid.". I have NO "Return url" set in the Authorize payment plugin, the API is SIM and NO response URL's set on the Authorize.net end.

I have reviewed the checkout configuration settings and the checkout flow is 'Cart > Login > Coupon > Payment > Address'. Under the Shipping & Payment, I have set the "Auto submit shipping and payment methods selection" to 'Yes'.

To say I am confused would be an understatement.

Any idea what I have done wrong?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #249440

Hi,

I'm not sure what you're talking about. An authorize button ? On the checkout ?
If you have to click on a button on the checkout for the payment methods, it means that you've turned off the "auto select shipping and payment methods" setting and because of that, the system requires that you select the payment method yourself instead of auto selecting it for you.
The error you get means that there is a problem with the payment notification. Turn on the debug mode of the payment method and look at the payment log of the HikaShop configuration after another try. It should provide valuable information on the problem.

I've tried to access your shop but it didn't work:
Apparently something related to admin tools:
take.ms/6yExD
Would that be why the payment notification from Authorize doesn't work anymore ? If I'm blocked from accessing your website for some reason, it could be the same for the Authorize server trying to notify your website...

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #249470

Nicolas,

I've disabled all AdminTools add-on's.

I created a new order and am having the same issues. If I click the order submit button, it gives me the "Please complete your payment information". Once I click the 'Authorize' button, it refreshes the checkout page and this time the 'Authorize' button changes from a gray background color to a blue background color. If I hover over the 'Authorize' button, the background color changes to green. If I click the order submit button, I get the #14 error display page. I did set the 'Authorize' payment plugin to 'Debug' as well as the 'Joomla' debug but it did not display anything after I got to the #14 error page as it was on the 'authorize.net' website. I've taken the debug off as I don't 'really' like having that much information displayed on a live development site.

AUTHORIZE PAYMENT PLUGIN



CHECKOUT CONFIGURATION


INITIAL ORDER DISPLAY


FIRST ORDER SUBMIT


SECOND ORDER SUBMIT AFTER CLICKING AUTHORIZE BUTTON
]

FINAL ORDER SUBMIT


AUTHORIZE.NET URL SETTINGS

Last edit: 8 years 2 months ago by LukeDouglas.

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

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
8 years 2 months ago #249574

Hello,

Can you try to delete your Url that you added in your Authorized setting page ? (in your last screenshot)
Does you see some change by doing this ?

Note that this :



Is your thank you page(for your customer) and not the payment notification url (that means that Authorize elements sent on this thank you page url won't be able to confirm payment on your e-shop).

Awaiting news from you.

Regards

Attachments:
Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #249611

I removed all URL's from Authorize.net and set the .'Auto select default shipping and payment methods' to 'Yes' (my bad).



I added a product to the cart, went to the cart, logged in, put in my address and when I clicked the submit button, I click the submit and now it goes to the Authorize.net payment screen. I complete the payment screen and it gives me the " Thank you for your purchase. You can go back to the shop by clicking on this link" I click the link and it returns back to the website 'Thank you for your purchase" message which is the text for the variable THANK_YOU_FOR_PURCHASE in the en-GB.com_hikashop.ini file.

So the only issues is how can I have it to return automatically back to the site after payment has been processed without displaying the "Thank you for your purchase. You can go back to the shop by clicking on this link"?

Last edit: 8 years 2 months ago by LukeDouglas.

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

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
8 years 2 months ago #249686

Hello,

"Thank you for your purchase. You can go back to the shop by clicking on this link"?

This displaying is manage by Authorize and so, we can't manage this specific point, you can ask for this to Authorize support.

Hope you will solve this.

Regards

Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #249862

Phillippe,

I did contact Authorize tech support and here is what they replied:

Thank you for your follow up question regarding the error 14. I would be happy to assist you further.

The Relay URL set in the gateway is going to create a whitelisted URL list. So if we get another URL in the code that does not match the URL set in your account, we would return that error 14. I would advise you obtain the logs from your plugin and reply to this eticket with the full request string so we can review. There is no way for us to access them from here, they would need to be provided to us.

We look forward to reviewing those logs with you, Audrey.

Regards,
Tyler C
Customer Support


So how can I get this log to see what is actually being sent to Authorize.net?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #249864

Hi,

At the end of the checkout, when you see the message telling you to weit while you're being redirected, stop the browser (with the stop button of the browser). Then, right click on the message and click on "inspect code" or something similar (the exact text depends on your browser). Then, in the HTML code, you'll find all the hidden inputs of the redirection form which sends the data to authorize.net.
Also, if you leave the developer tools window open on the "network" tab, you'll be able to see the request sent to authorize.net along with all the parameters of the inputs of the redirection form.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #249944

Nicolas,

I have this url in the Return URL of the Authorize Payment Plugin:

https://divorcetoolbox.net/thank-you-for-your-purchase

When I click the checkout submit button and I stop it on the page that has the "Please wait while you are redirected to Authorize
If you are not redirected after 10 seconds, please click on the button below.", it has this hidden field in this form:
<form id="hikashop_authorize_form" method="post" action="https://secure.authorize.net/gateway/transact.dll" name="hikashop_authorize_form">

Hidden Relay URL field:
<input type="hidden" value="https://www.divorcetoolbox.net/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=authorize&tmpl=component&lang=en&Itemid=355" name="x_relay_url">

There are NO other fields that have a URL in them at all.

Here is the Authorize plugin settings at the time that I did this test.



Now can you explain how the proper relay field is NOT included in the transaction?

Last edit: 8 years 2 months ago by LukeDouglas.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #249950

Hi,

That's the proper relay response field and it has the correct URL.
The error message that you see doesn't mean necessarily that this URL is wrong. It means that what this URL returns when authorize.net calls it is not valid.
It often happens. For example, if you configure your Joomla website to be offline so that you can only access it if you login with an admin account, when the payment gateway will try to call that relay response URL, Joomla will catch the URL and reply back with a "redirect to login page URL" response instead of the normal response the Authorize.net payment plugin is supposed to answer.
Many other things can lead to that error.

The Authorize.net support required that you provide the full request so that means that they want you to give them all the hidden inputs of the form, not just the relay response one. That way they can check if something is wrong with what HikaShop sends to Authorize.net.
Also, as they say, if you filled in the relay response URL field in your Authorize.net merchant account, it has to be the URL that HikaShop sends to them, so it should be: www.divorcetoolbox.net/index.php?option=...t&lang=en&Itemid=355
But you better leave that setting empty and let HikaShop sends the URL himself.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #250057

Nicolas,

I followed your recommendation and removed all URL's from the Authorize.net side. I tried with and without a 'Return URL' in the HikaShop setting. I can get to Authorize, do the payment processing but then I get a page on the Authorize.net end that states " Thank you for your purchase. You can go back to the shop by clicking on this link". That is what I am 'trying' to eliminate as the client wants the customer to be returned 'automatically' back to the shopping site after payment has been entered and processed.

So basically, I'm back to square one. Any idea WHAT I have to do so that message does not appear after payment has been processed on the Authorize.net end?

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

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
8 years 2 months ago #250152

Hello,

We are okey that this message "Thank you for your purchase. You can go back to the shop by clicking on this link" is displayed ON your payment gateway page, right ?
So,this part is up to your merchant setting on the payment gateway, maybe you have some settings on your merchant setting page ? Or else to get what you want, anyway I don't know how that can be up to HikaShop...

Do you speak with the payment gateway support to this point ?

Hope you will reach your aim.

Regards

Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #250208

Phillip,

Yes. I have been communicating with both HikaShop and Authorize on this issue now for well over 2 months. It seems I am stuck between HikaShop saying it is an Authorize issue and Authorize saying it is a HikaShop issue.

What I fail to understand is if I put in the URL "https : // divorcetoolbox.net/thank-you-for-your-purchase" (separated for display purpose only) in the Authorize payment plugin, why is it not included "x_relay_url" input information sent to Authorize as that is the URL that they are trying to compare against the Response Relay URL that I entered on their site to confirm that is the proper URL to send the user once payment processing has been completed.

Here is my latest response from Authorize when I sent them the 'entire' form submission code.

Thank you for your patience while this was investigated. I have had the response below from product support:

The attached request show:
Relay Response URL: divorcetoolbox.net/index.php?option=com_...t&lang=en&Itemid=355

Please note "parameterized URLs are not permitted"

Plesae refer to the below article for more details
KB A601 support.authorize.net/authkb/index?page=content&id=A601

If the information provided above satisfies your needs, please close this eTicket. Otherwise, please add an update to this eTicket with your follow-up questions so I can further assist you. For your convenience the Authorize.Net Knowledge Base, located at: www.authorize.net/help , is available 24x7.

Regards,
Melissa C.
Customer Support


Here is Authorize guidelines:

SIM/DPM Integration Suggestions

If you prefer to have your customer view our default hosted receipt page with a link to return to your site, you should be submitting the x_receipt_link_url field. Alternately, if you want to use Relay Response to display your own receipt page hosted on your site, you should be submitting the x_relay_url field. Error 14 occurs for SIM and DPM users when a transaction request is submitted that includes values for x_receipt_link_url or x_relay_url that are not specified in your Default Response/Receipt URL settings in the Merchant Interface.

Note: DPM merchants will only use x_relay_url as the default hosted receipt page is a feature of SIM's default hosted payment form.

Also note that parameterized URLs are not permitted.

By designating one or more Default Response/Receipt URLs in the Merchant Interface, you are telling the payment gateway to only allow customers to return to one of the specified URLs after submitting the payment form. If the value of either x_receipt_link_url or x_relay_url does not match one of these designated Default Response/Receipt URLs, Error 14 will occur.


Now I may not be reading this correctly but it appears that if the URL that I have entered into the Authorize payment plug-in were provided to Authorize via the "x_relay_url" setting, then there should be no issue in Authorize returning the user back to the "https : // divorcetoolbox.net/thank-you-for-your-purchase", especially since that is NOT a parameterized URL.

Am I wrong?

Last edit: 8 years 2 months ago by LukeDouglas.

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

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
8 years 2 months ago #250213

Hello,

Whaoo I'm so sorry ! I'm now understand what you meant, sorry for the delay to get your solution...
The way Authorize.net payment plugin is slightly different from other payment, I get it!

Here, we are with your solution :
- Go to Component => Configuration
- Then Click on Languages tabs
- Then click, on the little pen icon to edit your language file



- Look for, this traduction key : GO_BACK_TO_SHOP="You can go back to the shop by clicking on this link"
- Change for this : GO_BACK_TO_SHOP="" and don't forget to Save.

Sorry, I can't imagine that some plugin can process this way, sorry again for the misunderstandood.

Regards.

Attachments:
Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #250240

Philippe,

It's worse now. Once I complete the payment processing, all it says now is "Thank you for your purchase.". No link. No nothing. Stuck on the https://secure.authorize.net/gateway/transact.dll page.

Any other ideas?

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

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
8 years 2 months ago #250287

Hello,

- Then go in Authorized payment file ( in YourWebSite/plugins/hikashoppayment/authorize)
- Edit your authorize_thankyou.php
- Replace all the code by this :

<div class="hikashop_authorize_thankyou" id="hikashop_authorize_thankyou">
	<span id="hikashop_authorize_thankyou_message" class="hikashop_authorize_thankyou_message">
		<?php echo JText::_('THANK_YOU_FOR_PURCHASE');
		if(!empty($this->payment_params->return_url)){
			echo '<br/><a href="'.$this->payment_params->return_url.'">'.JText::_('GO_BACK_TO_SHOP').'</a>';
		}?>
	</span>
</div>
<?php if(!empty($this->payment_params->return_url)){ ?>
<script type="text/javascript">
	window.location='<?php echo $this->payment_params->return_url; ?>';
</script>
<?php } ?>

And try to make a new test, I awaiting you.

Regards

Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 332
  • Thank you received: 6
8 years 2 months ago #250342

Phillip,

Made the changes, did a test and it worked. I will test extensively. Thanks!

In comparing the differences, I see you removed the 'IE' code. Is that correct? Should this code be used on any other shopping sites where I am using HikaShop with Authorize payment methods? Will it be included in any future updates or is this strictly an update for this one site?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #250345

Hi,

Yes, it will be include in next release.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.115 seconds
Powered by Kunena Forum