forked from LiveCarta/PayPal-PHP-SDK
Samples now uses built-in web server
This commit is contained in:
26
README.md
26
README.md
@@ -23,7 +23,7 @@ You can download composer using instructions on [Composer Official Website.](htt
|
||||
|
||||
#### Steps to Install :
|
||||
|
||||
Currently, Paypal PHP Rest API SDK is available at [https://packagist.org](https://packagist.org/packages/paypal/rest-api-sdk-php). To use it in your project, you need to include it as a dependency in your project composer.json file. It can be done in two ways :
|
||||
Currently, Paypal PHP Rest API SDK is available at [https://packagist.org](https://packagist.org/packages/paypal/rest-api-sdk-php). To use it in your project, you need to include it as a dependency in your project composer.json file. It can be done either:
|
||||
|
||||
* Running `composer require paypal/rest-api-sdk-php:*` command on your project root location (where project composer.json is located.)
|
||||
|
||||
@@ -64,11 +64,21 @@ If you do not want to use composer, you can grab the SDK zip that contains Paypa
|
||||
* 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)
|
||||
|
||||
### Running Locally
|
||||
* Clone the repo and navigate to the samples folder.
|
||||
* Samples have dependency on the sdk and you can use [`composer`](http://getcomposer.org) to get the dependencies. Ensure that you have composer installed on your machine, navigate to the root folder and run `composer update --no-dev` to fetch the SDK.
|
||||
* Optionally, update the bootstrap.php file with your own client Id and client secret, that you could find from the [developer portal](https://developer.paypal.com)
|
||||
* You need to host this project locally using any server, e.g. Apache.
|
||||
* Open the `index.html` page under `/sample` directory and checkout the samples.
|
||||
|
||||
* Clone the [PayPal-PHP-SDK repository](https://github.com/paypal/PayPal-PHP-SDK)
|
||||
```
|
||||
git clone https://github.com/paypal/PayPal-PHP-SDK
|
||||
```
|
||||
* Run Composer installer on PayPal-PHP-SDK directory
|
||||
```
|
||||
composer install
|
||||
```
|
||||
* Run PHP Built-in web server by running
|
||||
```
|
||||
php -f sample/index.php
|
||||
```
|
||||
|
||||
* If you are using PHP version older than 5.4, you can follow the instructions described [here](sample/).
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -129,8 +139,8 @@ You can intialize the API objects by passing JSON string or Array representation
|
||||
|
||||
```
|
||||
$obj = new SimpleClass('{"name":"test","description":"description"}');
|
||||
$obj->getName();
|
||||
$obj->getDescription();
|
||||
$obj->getName(); // test
|
||||
$obj->getDescription(); // description
|
||||
```
|
||||
|
||||
### Accessor Validation
|
||||
|
||||
@@ -5,8 +5,29 @@ This sample project is a simple web app that you can explore to understand what
|
||||
|
||||
To try out the sample, run `composer update --no-dev` from the PayPal-PHP-SDK folder and you are all set.
|
||||
|
||||
#### Running on a web
|
||||
* If you plan to run these samples on the web, you will need to host this project under a local server. E.g. Apache.
|
||||
#### Running Samples
|
||||
|
||||
##### PHP 5.4 or higher
|
||||
* If you are running PHP 5.4 or greater, PHP provides a built-in support for hosting PHP sites.
|
||||
* The fastest way to get it running is
|
||||
```bash
|
||||
php -f sample/index.php
|
||||
```
|
||||
* This would get the [built-in web server](http://php.net/manual/en/features.commandline.webserver.php) started, and hosted on `http://localhost:5000'
|
||||
|
||||
```bash
|
||||
LM-AUN-00876403:PayPal-PHP-SDK japatel$ php -f sample/index.php
|
||||
PHP 5.5.14 Development Server started at Wed Nov 19 21:07:52 2014
|
||||
Listening on http://localhost:5000
|
||||
Document root is /Users/japatel/Documents/workspace/Server-SDK/PayPal-PHP-SDK/sample
|
||||
Press Ctrl-C to quit.
|
||||
[Wed Nov 19 21:07:56 2014] ::1:60826 [200]: /index.php
|
||||
...
|
||||
```
|
||||
|
||||
##### PHP 5.3 or less
|
||||
|
||||
* You could host the entire project in your local web server, by using tools like [MAMP](http://www.mamp.info/en/) or [XAMPP](https://www.apachefriends.org/index.html).
|
||||
* Once done, you could easily open the samples by opening the matching URL. For e.g.:
|
||||
`http://localhost/PayPal-PHP-SDK/sample/index.html`
|
||||
|
||||
@@ -16,7 +37,7 @@ You should see a sample dashboard page as shown below:
|
||||
#### Running on console
|
||||
> Please note that there are few samples that requires you to have a working local server, to receive redirects when user accepts/denies PayPal Web flow
|
||||
|
||||
* To run on console, you need to open command prompt, and direct to samples directory.
|
||||
* To run samples itself on console, you need to open command prompt, and direct to samples directory.
|
||||
* Execute the sample php script by using `php -f` command as shown below:
|
||||
```bat
|
||||
php -f payments/CreatePaymentUsingSavedCard.php
|
||||
|
||||
@@ -53,7 +53,7 @@ class ResultPrinter
|
||||
if (self::$printResultCounter == 0) {
|
||||
include "header.html";
|
||||
echo '
|
||||
<div class="row header"><div class="col-md-3 pull-left"><br /><a href="../index.html"><h3>❮❮ Back to Samples</h3></a><br /><br /></div> <br />
|
||||
<div class="row header"><div class="col-md-3 pull-left"><br /><a href="../index.php"><h3>❮❮ Back to Samples</h3></a><br /><br /></div> <br />
|
||||
<div class="col-md-2 pull-right"><img src="../images/pp_v_rgb.png" height="70" /></div> </div><div class="clearfix visible-xs-block"></div><br />';
|
||||
echo '<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">';
|
||||
}
|
||||
@@ -193,13 +193,8 @@ function getBaseUrl()
|
||||
$protocol = 'http';
|
||||
if ($_SERVER['SERVER_PORT'] == 443 || (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on')) {
|
||||
$protocol .= 's';
|
||||
$protocol_port = $_SERVER['SERVER_PORT'];
|
||||
} else {
|
||||
$protocol_port = 80;
|
||||
}
|
||||
|
||||
$host = $_SERVER['HTTP_HOST'];
|
||||
$port = $_SERVER['SERVER_PORT'];
|
||||
$request = $_SERVER['PHP_SELF'];
|
||||
return dirname($protocol . '://' . $host . ($port == $protocol_port ? '' : ':' . $port) . $request);
|
||||
return dirname($protocol . '://' . $host . $request);
|
||||
}
|
||||
|
||||
@@ -1,815 +0,0 @@
|
||||
<!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;
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.jumbotron {
|
||||
background: white;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: #428bca;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.footer-div a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.logo {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
@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;
|
||||
padding: 5px 8px;
|
||||
font-size: 110%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</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>
|
||||
<!-- 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>
|
||||
<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"
|
||||
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"> Execute <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"> Execute
|
||||
<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">
|
||||
Execute <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"> Execute <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"> Execute <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 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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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 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"> Execute <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"> Execute <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 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"> Execute <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"> Execute <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"> Execute <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">
|
||||
Execute <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"> Execute <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"> Execute <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">
|
||||
Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute
|
||||
<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 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"> Execute <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"> Execute <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"> Execute <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 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"> Execute
|
||||
<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"> Execute <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"> Execute
|
||||
<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"> Execute
|
||||
<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"> Execute <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"> Execute
|
||||
<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 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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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 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"> Execute <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"> Execute <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">
|
||||
Execute <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>
|
||||
884
sample/index.php
Normal file
884
sample/index.php
Normal file
@@ -0,0 +1,884 @@
|
||||
<?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,
|
||||
);
|
||||
$proc = proc_open($cmd, $descriptors, $pipes);
|
||||
if ($proc === 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);
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
<!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;
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.jumbotron {
|
||||
background: white;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: #428bca;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.footer-div a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.logo {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
@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;
|
||||
padding: 5px 8px;
|
||||
font-size: 110%;
|
||||
}
|
||||
|
||||
|
||||
</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>
|
||||
<!-- 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>
|
||||
<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"
|
||||
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"> Execute <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">
|
||||
Execute
|
||||
<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">
|
||||
Execute <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"> Execute <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"> Execute <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 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"> Execute
|
||||
<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"> Execute
|
||||
<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">
|
||||
Execute <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"> Execute <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"> Execute
|
||||
<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"> Execute <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"> Execute <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 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"> Execute <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"> Execute <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 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"> Execute <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"> Execute <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"> Execute <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">
|
||||
Execute <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"> Execute <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"> Execute <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">
|
||||
Execute <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"> Execute
|
||||
<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">
|
||||
Execute <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">
|
||||
Execute <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">
|
||||
Execute
|
||||
<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 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"> Execute <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"> Execute <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"> Execute <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 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">
|
||||
Execute
|
||||
<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">
|
||||
Execute <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">
|
||||
Execute
|
||||
<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">
|
||||
Execute
|
||||
<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"> Execute <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">
|
||||
Execute
|
||||
<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 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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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"> Execute <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 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"> Execute <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"> Execute <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">
|
||||
Execute <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>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user