forked from LiveCarta/PayPal-PHP-SDK
921 lines
44 KiB
PHP
921 lines
44 KiB
PHP
<?php
|
|
if (PHP_SAPI == 'cli') {
|
|
// If the index.php is called using console, we would try to host
|
|
// the built in PHP Server
|
|
if (version_compare(phpversion(), '5.4.0', '>=') === true) {
|
|
//exec('php -S -t ' . __DIR__ . '/');
|
|
$cmd = "php -S localhost:5000 -t " . __DIR__ . '/';
|
|
$descriptors = array(
|
|
0 => array("pipe", "r"),
|
|
1 => STDOUT,
|
|
2 => STDERR,
|
|
);
|
|
$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]);
|
|
$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>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
<link rel="icon" href="images/favicon.ico">
|
|
|
|
<title>PayPal REST API Samples</title>
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
|
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
li.list-group-item:hover {
|
|
background-color: #EEE;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.jumbotron {
|
|
background: white;
|
|
color: #000;
|
|
}
|
|
|
|
.footer {
|
|
background: #428bca;
|
|
color: #000;
|
|
}
|
|
|
|
.footer-div a {
|
|
color: #000;
|
|
}
|
|
|
|
.logo {
|
|
position: relative;
|
|
}
|
|
|
|
#leftNavigation {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 992px) {
|
|
.jumbotron {
|
|
background: -webkit-linear-gradient(-9deg, white 30%, #428bca 25%);
|
|
color: #EEE;
|
|
}
|
|
|
|
.footer-div a {
|
|
color: #EEE;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.logo {
|
|
position: fixed;
|
|
top: 40px;
|
|
}
|
|
}
|
|
|
|
html {
|
|
position: relative;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
/* Margin bottom by footer height */
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.footer {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
min-height: 60px;
|
|
background: -webkit-linear-gradient(-9deg, #428bca 70%, white 25%);
|
|
}
|
|
|
|
.footer-links, .footer-links li {
|
|
display: inline-block;
|
|
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 -->
|
|
<!--[if lt IE 9]>
|
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
<![endif]-->
|
|
</head>
|
|
|
|
<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">
|
|
<div class="row">
|
|
<div class="col-md-4 pull-left">
|
|
<img src="images/pp_v_rgb.png" class="logo" height="200"/>
|
|
</div>
|
|
<div class="col-md-8 pull-right">
|
|
<h1> REST API Samples</h1>
|
|
|
|
<p>These examples are created to experiment with the PayPal-PHP-SDK capabilities. Each examples
|
|
are
|
|
designed to demonstrate the default use-cases in each segment.
|
|
Many examples should be executable, and should allow you to experience the default behavior
|
|
of our
|
|
sdk, to expedite your integration experience.</p>
|
|
|
|
<div class="footer-div">
|
|
<ul class="footer-links">
|
|
<li>
|
|
<a href="https://github.com/paypal/PayPal-PHP-SDK" target="_blank"><i
|
|
class="fa fa-github"></i>
|
|
Github</a></li>
|
|
<li>
|
|
<a href="https://developer.paypal.com/webapps/developer/docs/api/"
|
|
target="_blank"><i
|
|
class="fa fa-book"></i> REST API Reference</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://github.com/paypal/PayPal-PHP-SDK/issues" target="_blank"><i
|
|
class="fa fa-exclamation-triangle"></i> Report Issues </a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<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 id="payments" class="panel-title"><a
|
|
href="https://developer.paypal.com/webapps/developer/docs/api/#payments"
|
|
target="_blank">Payments</a></h3>
|
|
</div>
|
|
<!-- List group -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Direct credit card payments</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/CreatePayment.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/CreatePayment.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>PayPal account payments</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/CreatePaymentUsingPayPal.php" class="btn btn-primary pull-left execute">
|
|
Try It
|
|
<i class="fa fa-play-circle-o"></i></a><a
|
|
href="doc/payments/CreatePaymentUsingPayPal.html"
|
|
class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Stored credit card payments</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/CreatePaymentUsingSavedCard.php"
|
|
class="btn btn-primary pull-left execute">
|
|
Try It <i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/CreatePayment.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<h5>Future payments*
|
|
<small> (needs Authorization Code from Mobile SDK)</small>
|
|
</h5>
|
|
</div>
|
|
<div class="col-md-4"></div>
|
|
<div class="col-md-4">
|
|
<a href="doc/payments/CreateFuturePayment.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get payment details</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/GetPayment.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/CreatePayment.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get payment history</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/ListPayments.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/CreatePayment.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<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>
|
|
<!-- List group -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Authorize Payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/AuthorizePayment.php" class="btn btn-primary pull-left execute"> Try It
|
|
<i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/AuthorizePayment.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get details of an authorized payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/GetAuthorization.php" class="btn btn-primary pull-left execute"> Try It
|
|
<i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/GetAuthorization.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Capture an authorized payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/AuthorizationCapture.php" class="btn btn-primary pull-left execute">
|
|
Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/AuthorizationCapture.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get details of a captured payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/GetCapture.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/GetCapture.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Void an authorized payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/VoidAuthorization.php" class="btn btn-primary pull-left execute"> Try It
|
|
<i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/VoidAuthorization.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Reauthorize a payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/Reauthorization.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/Reauthorization.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Refund captured payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payments/RefundCapture.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payments/RefundCapture.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<h3 id="sale" class="panel-title"><a
|
|
href="https://developer.paypal.com/webapps/developer/docs/api/#sale-transactions"
|
|
target="_blank">Sale</a></h3>
|
|
</div>
|
|
<!-- List group -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get Sale details</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="sale/GetSale.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/sale/GetSale.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Refund a Sale</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="sale/RefundSale.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/sale/RefundSale.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<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>
|
|
<!-- List group -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Create Billing Plan</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/CreatePlan.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/CreatePlan.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get Billing Plan</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/GetPlan.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/GetPlan.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Update/Activate Plan</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/UpdatePlan.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/UpdatePlan.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Update Plan Payment Definitions/Amount</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/UpdatePlanPaymentDefinitions.php"
|
|
class="btn btn-primary pull-left execute">
|
|
Try It <i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/UpdatePlanPaymentDefinitions.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>List Billing Plans</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/ListPlans.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/ListPlans.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Create Billing Agreement With Credit Card</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/CreateBillingAgreementWithCreditCard.php"
|
|
class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/CreateBillingAgreementWithCreditCard.html"
|
|
class="btn btn-default pull-right">Source
|
|
<i class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Create Billing Agreement With PayPal</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/CreateBillingAgreementWithPayPal.php"
|
|
class="btn btn-primary pull-left execute">
|
|
Try It <i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/CreateBillingAgreementWithPayPal.html"
|
|
class="btn btn-default pull-right">Source
|
|
<i class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get Billing Agreement</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/GetBillingAgreement.php" class="btn btn-primary pull-left execute"> Try It
|
|
<i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/GetBillingAgreement.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Update Billing Agreement</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/UpdateBillingAgreement.php" class="btn btn-primary pull-left execute">
|
|
Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/UpdateBillingAgreement.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Suspend Billing Agreement</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/SuspendBillingAgreement.php" class="btn btn-primary pull-left execute">
|
|
Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/SuspendBillingAgreement.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Reactivate Billing Agreement</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="billing/ReactivateBillingAgreement.php" class="btn btn-primary pull-left execute">
|
|
Try It
|
|
<i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/billing/ReactivateBillingAgreement.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<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 -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Save a credit card</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="vault/CreateCreditCard.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/vault/CreateCreditCard.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Retrieve saved credit card</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="vault/GetCreditCard.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/vault/GetCreditCard.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Delete saved credit card</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="vault/DeleteCreditCard.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/vault/DeleteCreditCard.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<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>
|
|
<!-- List group -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Create a web experience profile</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payment-experience/CreateWebProfile.php" class="btn btn-primary pull-left execute">
|
|
Try It
|
|
<i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payment-experience/CreateWebProfile.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Retrieve a web experience profile</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payment-experience/GetWebProfile.php" class="btn btn-primary pull-left execute">
|
|
Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payment-experience/GetWebProfile.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>List web experience profiles</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payment-experience/ListWebProfiles.php" class="btn btn-primary pull-left execute">
|
|
Try It
|
|
<i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payment-experience/ListWebProfiles.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Update a web experience profile</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payment-experience/UpdateWebProfile.php" class="btn btn-primary pull-left execute">
|
|
Try It
|
|
<i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payment-experience/UpdateWebProfile.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Partially update a web experience profile</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payment-experience/PartiallyUpdateWebProfile.php"
|
|
class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payment-experience/PartiallyUpdateWebProfile.html"
|
|
class="btn btn-default pull-right">Source
|
|
<i class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Delete a web experience profile</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="payment-experience/DeleteWebProfile.php" class="btn btn-primary pull-left execute">
|
|
Try It
|
|
<i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/payment-experience/DeleteWebProfile.html" class="btn btn-default pull-right">Source
|
|
<i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<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 -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Create an Invoice</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/CreateInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/CreateInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Send an Invoice</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/SendInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/SendInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Update an Invoice</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/UpdateInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/UpdateInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Retrieve an Invoice</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/GetInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/GetInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get Invoices of a Merchant</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/ListInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/ListInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Search for Invoices</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/SearchInvoices.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/SearchInvoices.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Send an Invoice Reminder</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/RemindInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/RemindInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Cancel an Invoice</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/CancelInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/CancelInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Delete an Invoice</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/DeleteInvoice.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/DeleteInvoice.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Retrieve a QR Code</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/RetrieveQRCode.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/RetrieveQRCode.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Record a Payment</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/RecordPayment.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/RecordPayment.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Record a Refund</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="invoice/RecordRefund.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/invoice/RecordRefund.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<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 -->
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Obtain User's Consent</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="lipp/ObtainUserConsent.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/lipp/ObtainUserConsent.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>User Consent Redirect</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="doc/lipp/UserConsentRedirect.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Get User Info</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="lipp/GetUserInfo.php" class="btn btn-primary pull-left execute"> Try It <i
|
|
class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/lipp/GetUserInfo.html" class="btn btn-default pull-right">Source <i
|
|
class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-8"><h5>Obtain Access Token From Refresh Token</h5></div>
|
|
<div class="col-md-4">
|
|
<a href="lipp/GenerateAccessTokenFromRefreshToken.php"
|
|
class="btn btn-primary pull-left execute">
|
|
Try It <i class="fa fa-play-circle-o"></i></a>
|
|
<a href="doc/lipp/GenerateAccessTokenFromRefreshToken.html"
|
|
class="btn btn-default pull-right">Source
|
|
<i class="fa fa-file-code-o"></i></a>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /container -->
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="footer-div">
|
|
<ul class="footer-links">
|
|
<li>
|
|
<a href="https://github.com/paypal/PayPal-PHP-SDK" target="_blank"><i
|
|
class="fa fa-github"></i>
|
|
Github</a></li>
|
|
<li>
|
|
<a href="https://developer.paypal.com/webapps/developer/docs/api/" target="_blank"><i
|
|
class="fa fa-book"></i> REST API Reference</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://github.com/paypal/PayPal-PHP-SDK/issues" target="_blank"><i
|
|
class="fa fa-exclamation-triangle"></i> Report Issues </a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<!-- Bootstrap core JavaScript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/scrollspy.min.js"></script>
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
if (window.location.href.indexOf("htmlpreview.github.io") >= 0) {
|
|
$(".execute").hide();
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|