In my code I have defined a custom field:
$transaction->setCustomFields('cart_id', '1'); $response =
$transaction->authorizeAndCapture(); if ($response->approved) { $cart_id
= $response->cart_id; //...do stuff with $cart_id } However, I get this
erro...