}/refund // ### Refund // Create a refund object indicating // refund amount $amount = new Amount(); $amount->setCurrency("USD"); $amount->setTotal("1.00"); $refund = new Refund(); $refund->setId('7BA08426L46375838'); $refund->setAmount($amount); $capture = Capture::get('7BA08426L46375838', $apiContext); try { // (See bootstrap.php for more on `ApiContext`) $captureRefund = $capture->refund($refund, $apiContext); } catch (\PPConnectionException $ex) { echo "Exception: " . $ex->getMessage() . PHP_EOL; var_dump($ex->getData()); exit(1); } ?>
Refund Capture:
Back