Hi! My open cart is Version 3.0.3.6. Activated Square extension but in Square settings field Square OAuth Redirect URL I have URL like this - 1index.php?route=extension/payment/squareup/oauth_callback no full address for some reason and Square keeps telling invalid redirect URL. Any idea how can I fix it?
Thanks anyone for help!
Thanks anyone for help!
1index.php?route=
where is that 1 coming from ?
where is that 1 coming from ?
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
For the OAuth redirect url it should be:
AND that field should not be editable. An auto generated field.
Since I do not use the OC3 version AND I thought 3.0.3.6 got rid of the square module completely, did you download that module from the marketplace?
If so what one? And you might need to contact that developer.
Mike
Code: Select all
https://www.yourdomain.com/youradminname/index.php?route=extension/payment/squareup/oauth_callback
Since I do not use the OC3 version AND I thought 3.0.3.6 got rid of the square module completely, did you download that module from the marketplace?
If so what one? And you might need to contact that developer.
Mike
cue4cheap not cheap quality
See the 2nd part of my comment:
"Since I do not use the OC3 version AND I thought 3.0.3.6 got rid of the square module completely, did you download that module from the marketplace?
If so what one? And you might need to contact that developer."
cue4cheap not cheap quality
Check HTTP_SERVER and HTTPS_SERVER in both config.php and admin/config.php/.
Do you have any extensions that make changes to the admin or URLs?
Have you checked the file admin/controller/extension/payment/squareup.php has not been modified?
Have any other URLs in your admin in the square page, such as the cancel or breadcrumbs been affected at all?
Do you have any extensions that make changes to the admin or URLs?
Have you checked the file admin/controller/extension/payment/squareup.php has not been modified?
Have any other URLs in your admin in the square page, such as the cancel or breadcrumbs been affected at all?
Thanks for reply. I checked all configs looks ok. Not sure if something wrong with squareup.php. If I post it it's long. Can I send it to you to look? Or if some one can send me the right file I can compare, but no one touched this file before.Have you checked the file admin/controller/extension/payment/squareup.php has not been modified?
Have any other URLs in your admin in the square page, such as the cancel or breadcrumbs been affected at all?
You can view the original file here.
https://github.com/opencart/opencart/bl ... uareup.php
Line 154 is the code that generates the link. As you can see it uses the same function as all the other links.
https://github.com/opencart/opencart/bl ... p.php#L154
It's then use in the template here.
https://github.com/opencart/opencart/bl ... p.twig#L96
https://github.com/opencart/opencart/bl ... uareup.php
Line 154 is the code that generates the link. As you can see it uses the same function as all the other links.
https://github.com/opencart/opencart/bl ... p.php#L154
It's then use in the template here.
https://github.com/opencart/opencart/bl ... p.twig#L96
There should be nothing special in those files, so just replace them with the original versions. Just make a back up first of any thing you replace.
Might be a sledgehammer way of trying to find and fix it but do a grep for "1index.php" in all your "squareup" files to see if there was a modification to your code that might account for how it go in that way.
Also look in your database "settings" table.
The key is squareup_redirect_uri_static
If it is in there without the leading information i.e. https://www.yourdomain.com/youradminname/
change it in the database and see if the problem goes away.
Mike
cue4cheap not cheap quality
Who is online
Users browsing this forum: No registered users and 325 guests