/*========== Sale ==========*/ # Execute authorization and capture (direct sale), to transaction //$azpay->sale()->execute(); /*========== Cancel ==========*/ //$azpay->cancel("DDCE12F2-21A9-1E7D-B3B2-4B3867BEB6DF")->execute(); /*========== PagSeguro ==========*/ //$azpay->pagseguro()->execute(); /*========== Pagseguro ==========*/ //$azpay->pagseguro_checkout()->execute(); /*========== PayPal ==========*/ //$azpay->paypal()->execute(); /*========== Online Debit ==========*/ //$azpay->online_debit()->execute(); /*========== Rebill ==========*/ //$azpay->rebill()->execute(); /*========== Report ==========*/ # Check a transaction status by TID $azpay->report('105F866-67CD-4B89-BE82-B1AC33E7027F')->execute(); /*========== Response ==========*/ $xml = $azpay->response(); } catch (AZPay_Error $e) { // HTTP 409 - AZPay Error /*========== Error Response ==========*/ $error = $azpay->responseError(); } catch (AZPay_Curl_Exception $e) { // Connection Error print $e->getMessage(); } catch (AZPay_Exception $e) { // General print $e->getMessage(); }