forked from LiveCarta/PayPal-PHP-SDK
Updated Sample Home Page
This commit is contained in:
@@ -61,7 +61,7 @@ If you do not want to use composer, you can grab the SDK zip that contains Paypa
|
||||
## Samples
|
||||
|
||||
### View
|
||||
* Using the [htmlpreview](https://github.com/htmlpreview/htmlpreview.github.com) tool you can now [view sample source codes here](http://htmlpreview.github.io/?https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/index.html)
|
||||
* Using the [htmlpreview](https://github.com/htmlpreview/htmlpreview.github.com) tool you can now [view sample source codes here](http://htmlpreview.github.io/?https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/index.php)
|
||||
|
||||
### Running Locally
|
||||
|
||||
|
||||
@@ -10,18 +10,20 @@ if (PHP_SAPI == 'cli') {
|
||||
1 => STDOUT,
|
||||
2 => STDERR,
|
||||
);
|
||||
$proc = proc_open($cmd, $descriptors, $pipes);
|
||||
if ($proc === false) {
|
||||
$process = proc_open($cmd, $descriptors, $pipes);
|
||||
if ($process === false) {
|
||||
fprintf(STDERR,
|
||||
"Unable to launch PHP's built-in web server.\n");
|
||||
exit(2);
|
||||
}
|
||||
fclose($pipes[0]); // Close the process' stdin.
|
||||
$exitCode = proc_close($proc); // Wait for process to exit.
|
||||
exit($exitCode);
|
||||
}
|
||||
fclose($pipes[0]);
|
||||
$exit = proc_close($process);
|
||||
exit($exit);
|
||||
} else {
|
||||
?>
|
||||
echo "You must be running PHP version less than 5.4. You would have to manually host the website on your local web server.\n";
|
||||
exit(2);
|
||||
}
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -60,6 +62,10 @@ if (PHP_SAPI == 'cli') {
|
||||
.logo {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#leftNavigation {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
@@ -99,10 +105,23 @@ if (PHP_SAPI == 'cli') {
|
||||
|
||||
.footer-links, .footer-links li {
|
||||
display: inline-block;
|
||||
padding: 5px 8px;
|
||||
font-size: 110%;
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
.footer-links li {
|
||||
padding-top: 5px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.fixed {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
@@ -112,7 +131,7 @@ if (PHP_SAPI == 'cli') {
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body data-spy="scroll" data-target="#leftNavigation" data-offset="0" class="scrollspy-example">
|
||||
<!-- Main component for a primary marketing message or call to action -->
|
||||
<div class="jumbotron">
|
||||
<div class="container-fluid">
|
||||
@@ -154,11 +173,26 @@ if (PHP_SAPI == 'cli') {
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-3"> </div>
|
||||
<div class="col-md-3 ">
|
||||
<div class="row-fluid fixed col-md-3" id="leftNavigation" role="navigation">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li><a href="#payments">Payments</a></li>
|
||||
<li><a href="#authorization">Authorization and Capture</a></li>
|
||||
<li><a href="#sale">Sale</a></li>
|
||||
<li><a href="#billing">Billing Plan & Agreements</a></li>
|
||||
<li><a href="#vault">Vault</a></li>
|
||||
<li><a href="#experience">Payment Experience</a></li>
|
||||
<li><a href="#invoice">Invoice</a></li>
|
||||
<li><a href="#identity">Identity (LIPP)</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a href="https://developer.paypal.com/webapps/developer/docs/api/#payments"
|
||||
<h3 id="payments" class="panel-title"><a
|
||||
href="https://developer.paypal.com/webapps/developer/docs/api/#payments"
|
||||
target="_blank">Payments</a></h3>
|
||||
</div>
|
||||
<!-- List group -->
|
||||
@@ -239,10 +273,9 @@ if (PHP_SAPI == 'cli') {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a
|
||||
<h3 id="authorization" class="panel-title"><a
|
||||
href="https://developer.paypal.com/webapps/developer/docs/api/#authorizations"
|
||||
target="_blank">Authorization and capture</a></h3>
|
||||
</div>
|
||||
@@ -335,7 +368,7 @@ if (PHP_SAPI == 'cli') {
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a
|
||||
<h3 id="sale" class="panel-title"><a
|
||||
href="https://developer.paypal.com/webapps/developer/docs/api/#sale-transactions"
|
||||
target="_blank">Sale</a></h3>
|
||||
</div>
|
||||
@@ -368,7 +401,7 @@ if (PHP_SAPI == 'cli') {
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a
|
||||
<h3 id="billing" class="panel-title"><a
|
||||
href="https://developer.paypal.com/webapps/developer/docs/api/#billing-plans-and-agreements"
|
||||
target="_blank">Billing Plan & Agreements</a></h3>
|
||||
</div>
|
||||
@@ -513,7 +546,7 @@ if (PHP_SAPI == 'cli') {
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a href="https://developer.paypal.com/webapps/developer/docs/api/#vault"
|
||||
<h3 id="vault" class="panel-title"><a href="https://developer.paypal.com/webapps/developer/docs/api/#vault"
|
||||
target="_blank">Vault</a></h3>
|
||||
</div>
|
||||
<!-- List group -->
|
||||
@@ -556,7 +589,7 @@ if (PHP_SAPI == 'cli') {
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a
|
||||
<h3 id="experience" class="panel-title"><a
|
||||
href="https://developer.paypal.com/webapps/developer/docs/api/#payment-experience"
|
||||
target="_blank">Payment Experience</a></h3>
|
||||
</div>
|
||||
@@ -645,7 +678,8 @@ if (PHP_SAPI == 'cli') {
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a href="https://developer.paypal.com/webapps/developer/docs/api/#invoicing"
|
||||
<h3 id="invoice" class="panel-title"><a
|
||||
href="https://developer.paypal.com/webapps/developer/docs/api/#invoicing"
|
||||
target="_blank">Invoice</a></h3>
|
||||
</div>
|
||||
<!-- List group -->
|
||||
@@ -787,7 +821,8 @@ if (PHP_SAPI == 'cli') {
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><a href="https://developer.paypal.com/webapps/developer/docs/api/#identity"
|
||||
<h3 id="identity" class="panel-title"><a
|
||||
href="https://developer.paypal.com/webapps/developer/docs/api/#identity"
|
||||
target="_blank">Identity (LIPP)</a></h3>
|
||||
</div>
|
||||
<!-- List group -->
|
||||
@@ -879,6 +914,3 @@ if (PHP_SAPI == 'cli') {
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user