
Originally Posted by
masterrusty
Yes in live mode.
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:
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__);
when you go to:
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.
Bookmarks