-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from liam-ng/v3
V3
- Loading branch information
Showing
5 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<title>Liam Demo</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | ||
<style> | ||
.mySlides {display:none} | ||
.w3-left, .w3-right, .w3-badge {cursor:pointer;color:black;} | ||
.w3-badge {height:13px;width:13px;padding:0;background-color:black;} | ||
body {font-family: 'Inter', Arial;} | ||
</style> | ||
<body> | ||
|
||
<div class="w3-container"> | ||
<a href="/" target="_self"><button type="button" name="back">Go back</button></a> | ||
<h2>PayPal Subscription API high-level workflow</h2> | ||
<p>API-first approach was adopted in this project. After testing on Postman and documenting the API requirements, I started to construct the website.</p> | ||
</div> | ||
|
||
<div class="w3-content w3-display-container" style="max-width:800px"> | ||
<img class="mySlides" src="assets/API Flow Diagram.png" style="width:100%"> | ||
<img class="mySlides" src="assets/Paypal high-level API flow.png" style="width:100%"> | ||
<img class="mySlides" src="assets/variable list.jpg" style="width:100%"> | ||
<div class="w3-center w3-container w3-section w3-large w3-text-white w3-display-bottommiddle" style="width:100%"> | ||
<div class="w3-left w3-hover-text-khaki" onclick="plusDivs(-1)">❮</div> | ||
<div class="w3-right w3-hover-text-khaki" onclick="plusDivs(1)">❯</div> | ||
<span class="w3-badge demo w3-border w3-transparent w3-hover-white" onclick="currentDiv(1)"></span> | ||
<span class="w3-badge demo w3-border w3-transparent w3-hover-white" onclick="currentDiv(2)"></span> | ||
<span class="w3-badge demo w3-border w3-transparent w3-hover-white" onclick="currentDiv(3)"></span> | ||
</div> | ||
</div> | ||
<h2>Reference for this project</h2> | ||
<a href="https://web.postman.co/documentation/27629820-e8d86ff7-7df6-4a74-9027-f11d5fdc681a"><p>PayPal APIs Postman Library</a> <small>- you can use PayPal example to simulate API workflow here</small></p> | ||
<a href="https://developer.paypal.com/dashboard/applications/sandbox"><p>PayPal Developer Sandbox</a> <small>- you can build your PayPal Application (ID & Secret) here</small></p> | ||
<a href="https://developer.paypal.com/api/rest/current-resources/"><p>PayPal Developer Documentation</a> <small>- you can find all API specifications here</small></p> | ||
<a href="https://github.com/paypaldev/PayPal-JS-FullStack-Advanced-Checkout-Sample"><p>PayPal JS FullStack Advanced Checkout Sample</a> <small>- you can find some useful sample JavaScript for reference here</small></p> | ||
|
||
<script> | ||
var slideIndex = 1; | ||
showDivs(slideIndex); | ||
|
||
function plusDivs(n) { | ||
showDivs(slideIndex += n); | ||
} | ||
|
||
function currentDiv(n) { | ||
showDivs(slideIndex = n); | ||
} | ||
|
||
function showDivs(n) { | ||
var i; | ||
var x = document.getElementsByClassName("mySlides"); | ||
var dots = document.getElementsByClassName("demo"); | ||
if (n > x.length) {slideIndex = 1} | ||
if (n < 1) {slideIndex = x.length} | ||
for (i = 0; i < x.length; i++) { | ||
x[i].style.display = "none"; | ||
} | ||
for (i = 0; i < dots.length; i++) { | ||
dots[i].className = dots[i].className.replace(" w3-white", ""); | ||
} | ||
x[slideIndex-1].style.display = "block"; | ||
dots[slideIndex-1].className += " w3-white"; | ||
} | ||
</script> | ||
|
||
</body> | ||
</html> |