freeCodeCamp/views/api/paypal.jade

31 lines
903 B
Plaintext
Raw Normal View History

2014-01-27 20:21:43 +00:00
extends ../layout
block content
.page-header
h2
2014-03-16 18:07:15 +00:00
i.fa.fa-dollar
2014-01-27 20:21:43 +00:00
| PayPal API
.btn-group.btn-group-justified
a.btn.btn-primary(href='https://developer.paypal.com/docs/integration/direct/make-your-first-call/', target='_blank')
i.fa.fa-check-square-o
| Quickstart
a.btn.btn-primary(href='https://developer.paypal.com/docs/api/', target='_blank')
i.fa.fa-code
| API Reference
a.btn.btn-primary(href='https://devtools-paypal.com/hateoas/index.html', target='_blank')
i.fa.fa-gear
| API Playground
2014-03-16 18:07:15 +00:00
if result
if canceled
h3 Payment got canceled!
if success
h3 Payment got executed successfully!
a(href='/api/paypal')
button.btn.btn-primary New payment
else
p.lead Redirects to PayPal and allows authorizing the sample payment.
a(href=approval_url)
button.btn.btn-primary Authorize payment