Removing Dependency from SDK Core Project

- Copied files required for Rest API SDK
- Removed PPApiContext and directly connected APIContext with PPConfigManager
- Removed duplicate data storage of configuration and credentials.
- Code Style Fixes
- Remove build.xml file as it is not required anymore
- Updated the samples
- Updated the documentations
This commit is contained in:
japatel
2014-10-06 11:16:47 -05:00
parent bb7654b0b8
commit 49b80f76af
150 changed files with 10975 additions and 6525 deletions

View File

@@ -48,7 +48,7 @@ try {
Captured payment <?php echo $getCapture->getParentPayment(); ?>. Capture Id:
<?php echo $getCapture->getId();?>
</div>
<pre><?php var_dump($getCapture->toArray());?></pre>
<pre><?php echo $getCapture->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -123,7 +123,7 @@ try {
Created payment:
<?php echo $payment->getId();?>
</div>
<pre><?php var_dump($payment->toArray());?></pre>
<pre><?php echo $payment->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -111,7 +111,7 @@ try {
Created payment:
<?php echo $payment->getId();?>
</div>
<pre><?php var_dump($payment->toArray());?></pre>
<pre><?php echo $payment->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -32,7 +32,7 @@ if(isset($_GET['success']) && $_GET['success'] == 'true') {
$result = $payment->execute($execution, $apiContext);
echo "<html><body><pre>";
var_dump($result);
echo $result->toJSON(JSON_PRETTY_PRINT);
echo "</pre><a href='../index.html'>Back</a></body></html>";
} else {

View File

@@ -37,7 +37,7 @@ try {
Retrieved Authorization:
<?php echo $authorization->getId();?>
</div>
<pre><?php var_dump($authorization->toArray());?></pre>
<pre><?php echo $authorization->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -58,7 +58,7 @@ try {
Capture Id:
<?php echo $capture->getId();?>
</div>
<pre><?php var_dump($capture->toArray());?></pre>
<pre><?php echo $capture->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -33,7 +33,7 @@ try {
</head>
<body>
<div>Retrieving Payment ID: <?php echo $paymentId;?></div>
<pre><?php var_dump($payment->toArray());?></pre>
<pre><?php echo $payment->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -34,7 +34,7 @@ try {
</head>
<body>
<div>Got <?php echo $payments->getCount(); ?> matching payments </div>
<pre><?php var_dump($payments->toArray());?></pre>
<pre><?php echo $payments->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -44,7 +44,7 @@ try {
<?php echo $reauthorization->getId();?>
</div>
<pre>
<?php var_dump($reauthorization->toArray());?>
<?php echo $reauthorization->toJSON(JSON_PRETTY_PRINT);?>
</pre>
<a href='../index.html'>Back</a>
</body>

View File

@@ -64,7 +64,7 @@ try {
</head>
<body>
<div>Refund Capture:</div>
<pre><?php var_dump($captureRefund);?></pre>
<pre><?php echo $captureRefund->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -37,7 +37,7 @@ try {
<div>
Voided authorization
</div>
<pre><?php var_dump($voidedAuth->toArray());?></pre>
<pre><?php echo $voidedAuth->toJSON(JSON_PRETTY_PRINT);?></pre>
<a href='../index.html'>Back</a>
</body>
</html>