diff --git a/sample/payments/AuthorizationCapture.php b/sample/payments/AuthorizationCapture.php index ab414f2..52345fa 100644 --- a/sample/payments/AuthorizationCapture.php +++ b/sample/payments/AuthorizationCapture.php @@ -22,9 +22,9 @@ $amt->setCurrency("USD"); $amt->setTotal("1.00"); ### Capture -$captur = new Capture(); -$captur->setId($authId); -$captur->setAmount($amt); +$capture = new Capture(); +$capture->setId($authId); +$capture->setAmount($amt); // get the authorization $authorization = Authorization::get($authId, $apiContext); @@ -34,7 +34,7 @@ $authorization = Authorization::get($authId, $apiContext); // using a valid ApiContext (See bootstrap.php for more on `ApiContext`) // The return object contains the status; try { - $capt = $authorization->capture($captur, $apiContext); + $getCapture = $authorization->capture($capture, $apiContext); } catch (\PPConnectionException $ex) { echo "Exception: " . $ex->getMessage() . PHP_EOL; var_dump($ex->getData()); @@ -45,10 +45,10 @@ try {
- toArray());?> + toArray());?>Back diff --git a/sample/source/AuthorizationCapture.html b/sample/source/AuthorizationCapture.html index 2bcf992..cd22334 100644 --- a/sample/source/AuthorizationCapture.html +++ b/sample/source/AuthorizationCapture.html @@ -17,14 +17,14 @@ API used: /v1/payments/payment
Capture Payment by posting to the APIService
using a valid ApiContext (See bootstrap.php for more on ApiContext)
The return object contains the status;
get the authorization