I have locations in Square Developer. But no drop down in gui.
Printable View
i don't know what to tell you. you seem to have a very rudimentary error that indicates a problem with either your credentials or your oauth token.
i would double check all of that information as well as the instructions on the docs for doing the install. mind you the problem is not with the code (no need to re-upload files), but something is wrong with your settings. or your square admin daashboard.
in your store root you can create a file called test.php with the following information:
when you go to:PHP Code:
<?php
require('includes/application_top.php');
include_once DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/square_webPay.php';
include_once DIR_FS_CATALOG . DIR_WS_LANGUAGES . 'english/modules/payment/square_webPay.php';
$test = new square_webPay();
$pulldown = $test->getLocationsPulldownArray();
print_r($pulldown);
die(__FILE__ . ':' . __LINE__);
www.mystore.com/test.php
you should see something like:
Array ( [0] => Array ( [id] => Default Test Account:[LKCCSZDNNZ0S6]:USD [text] => Default Test Account: USD ) ) /var/www/zcdev/test.php:21
if the Array is empty, you have done something wrong.
best.
Hallos,
Should I make a new square app for each zencart site i use the square web pay module on ? Or is one enough and I just share the Api key ? thanks so much again for all that you guys do.
Thank you so much.
Do you suggest deleting the old square module then?
If you had used the oold method to accept payment, you can use the Moduless >> Payment to remove the installation but leave the files. That way, your older transactions can still be viewed.