3.this is my question ?
Here is my code which i had used in xcart 4.6 & 4.7 version payment section. Please help me , where i need to use the code in xcart 5.3.3.4 version
// Setup the URL to CartStack...
$emailAddress = $userinfo['email'];
// required, get from session or db...
$cartTotal = $cart['total_cost']; // optional, more accurate reporting...
$url =
"
https://api.cartstack.com/ss/v1/?key=6cc64f627ae9418b820a41891dce6b13&siteid=k 5BYYFZK&e
mail=".$emailAddress."&total=". $cartTotal;
// Initialize cURL...
$ch = curl_init();
// Set URL and Return directives...
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Send the request...
$jsonResponse = curl_exec($ch);
// Close cURL...
curl_close($ch);
// Handle JSON response...
$response = json_decode($jsonResponse, true);
// Successful call is response code 100...
if ($response['resp'] != "100"

{ /* Handle error responses, see "Response Codes" above... */ }