Fireship · @fireship
PayPal Checkout 2.0 - Monetize React, Angular, & Vue Quickly
Uploaded June 24, 2019 · Length 9:02
Summary
Implement PayPal Checkout 2.0 in React, Angular, and Vue for easy payment processing.
- paypal checkout 2.0
- react payment integration
- angular payment integration
- vue payment integration
- progressive web app payments
- paypal api integration
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
version two of the paypal api was
- 0:01
released earlier this year and it makes
- 0:03
the extremely easy to start accepting
- 0:05
payments from your progressive web app
- 0:06
it's so easy in fact that I can show you
- 0:08
how to integrate it into angular react
- 0:10
and view in a single video dollar dollar
- 0:13
bill y'all in today's video you'll learn
- 0:15
the basics of the paypal version two API
- 0:17
and how to start accepting and capturing
- 0:19
real payments from your front-end
- 0:20
JavaScript app and it's a lot easier
- 0:22
than you might think if you're new here
- 0:23
like and subscribe and you can find the
- 0:25
full source code on fire ship io now
- 0:27
just a few days ago I implemented
- 0:29
PayPal payments on fire ship and also
- 0:31
added the ability to purchase individual
- 0:33
courses so ironically you can now use
- 0:35
PayPal to pay for my strength payments
- 0:37
course if you want now during this
- 0:38
integration I learned that PayPal 2.0
- 0:40
delivers a really nice developer
- 0:42
experience they've completely revamped
- 0:43
the documentation and the API in a way
- 0:46
that resembles stripe payments now in my
- 0:48
case I already have stripe implemented
- 0:49
so I'm using PayPal alongside it as an
- 0:51
additional option but you can actually
- 0:52
use PayPal as a standalone payment
- 0:54
solution to accept credit cards venmo
- 0:56
crypto and more well we'll be looking at
- 0:58
today as PayPal checkout which allows
- 1:00
you to mount this payment button
- 1:01
directly in your application and it will
- 1:03
take care of collecting payment details
- 1:05
from the user and can also capture and
- 1:07
charge the payment entirely from the
- 1:08
front end the first thing you'll need to
- 1:09
get started is a PayPal business account
- 1:11
from there you can go to the PayPal
- 1:13
developers dashboard and the first thing
- 1:15
you'll want to do is create an
- 1:16
application when you create this
- 1:17
application it will give you two sets of
- 1:19
API keys these sandbox keys are used to
- 1:21
make mock payments and to test your
- 1:23
integration and live keys are used for
- 1:24
actual payments in your production app
- 1:26
now each of these environments contains
- 1:28
two API keys the client ID and the
- 1:30
secret the client ID is perfectly safe
- 1:32
to expose in your front-end application
- 1:34
and we'll use that client ID in the
- 1:36
angular react and view apps the secret
- 1:38
on the other hand should never be
- 1:39
exposed in your front-end code or a
- 1:40
public github repo a secret is used to
- 1:43
identify your app to a back-end server
- 1:44
like node or firebase cloud functions so
- 1:47
you can use it to interact with the API
- 1:48
from the backend but we actually don't
- 1:50
even need to use it in this demo and
- 1:52
that's because you can use PayPal
- 1:53
checkout to do everything entirely from
- 1:54
the front-end and we'll talk a little
- 1:56
bit more about the trade-offs later in
- 1:57
the video
- 1:57
now we're going to implement the same
- 1:59
basic payment spec in angular reactant


