connect_errno) { printf("sl Connect failed: %s\n", $dbpaypal->connect_error); exit(); } // Include the PayPal API library require_once 'paypal_advanced/PaypalCheckout.class.php'; $paypal = new PayPalCheckout(); // adapte le constructeur si besoin $errors = []; $successMsg = null; $CAPTURE_ID="6J9283436L868890M"; // Helpers // Calcule le max remboursable pour afficher le champ $currencyUI = 'CAD'; print_rsl($_SESSION); echosl(PAYPAL_CLIENT_ID); $sortie=$paypal->paypaldetails($CAPTURE_ID); print_rsl($sortie); exit; $maxUI = getRefundablePayPal($paypal, $CAPTURE_ID,$currencyUI); echosl($maxUI); print_rsl(getRefundableRemainingSimple($paypal, $CAPTURE_ID,$currencyUI)); $refund = $paypal->refundCapture($capId , '10.00', 'CAD', 'Remboursement partiel'); $delails=$paypal->getCaptureDetails($capId); // doit renvoyer des infos $Refunds=$paypal->getRefundsForCapture($delails); echosl("getCaptureDetails"); print_rsl($delails); echosl("getRefundsForCapture"); print_rsl($Refunds); echosl("---------------------------------"); $result = $paypal->getRefundsByOrderId('7EX391896U5175218'); print_rsl($result); //$cap = $paypal->getCaptureDetails($capId); //$debug = $paypal->debugReportAroundCapture($cap);