-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.php
33 lines (29 loc) · 1.48 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Examples
*
* A few examples to demonstrate the methods of accepting payments.
*/
?>
<html>
<head>
<title>PayPal - Digital Goods for Express Checkout Examples</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="container">
<h1>Thanks for Dropping by!</h1>
<p>This library includes three examples: <a href="example-purchase.php">Simple Purchase</a>, <a href="example-subscription.php">Simple Subscription</a> and <a href="example-subscription-checkout.php">Subscription with Separate Checkout page</a>.</p>
<h3>Simple Purchase</h3>
<p>This example demonstrates how to use the library to accept a simple Digital Goods payment.</p>
<p><a href="example-purchase.php">Try the Simple Purchase Example »</a></p>
<h3>Simple Subscription</h3>
<p>Create a recurring payment by following the code for this example.</p>
<p><a href="example-subscription.php">Try the Simple Subscription Example »</a></p>
<h3>Subscription with Separate Checkout</h3>
<p>Using the library, you can also use a separate checkout page in the payment flow. Doing so greatly reduces the page load of your payment/sign-up page by requesting a checkout token from PayPal only after a visitor has committed to payment.</p>
<p>The code for this example demonstrates how to use a separate checkout page for a subscription sign-up.</p>
<p><a href="example-subscription-checkout.php">Try the Separate Checkout Example »</a></p>
</div>
</body>
</html>