/home/desid573/public_html/gcdriver
NameSizeModeActions
assets/-0755rm
lib/-0755rm
payment/-0755rm
PHPMailer/-0755rm
square/-0755rm
array.php22000644editdlrm
a_name_address.php9590644editdlrm
class.phpmailer.php1409010644editdlrm
class.pop3.php103850644editdlrm
class.smtp.php403430644editdlrm
error_log417350644editdlrm
gcpathfinder.png20880644editdlrm
gcsedan.png26360644editdlrm
index.php833740644editdlrm
logo.jpg249910644editdlrm
newJob.php71760644editdlrm
PHPMailer.zip2553920644editdlrm
style.json10140644editdlrm
test.php9770644editdlrm
test2.php9320644editdlrm
test3.php12690644editdlrm
thankyou.php216670644editdlrm
typeConfig.php14600644editdlrm
Edit: /home/desid573/public_html/gcdriver/test2.php (932B)
setHost("https://connect.squareupsandbox.com"); $api_config->setAccessToken($access_token); $api_client = new \SquareConnect\ApiClient($api_config); $customersApi = new SquareConnect\Api\CustomersApi($api_client); $body = new \SquareConnect\Model\CreateCustomerCardRequest(); // Set the card nonce value for your request object. $body->setCardNonce("cnon:CBASEPC24f9O-3Fw_J3t0ABsM38"); //$body->setCardNonce("AXTKZ34RXCRTSAJKC8T8P91630"); //print_r($body); try { $result = $customersApi->createCustomerCard("AXTKZ34RXCRTSAJKC8T8P91630", $body); print_r($result); echo $result["card"]["id"]; } catch (Exception $e) { print_r('Error when calling createCustomerCard: '.$e->getMessage()); return "error"; } ?>