Рет қаралды 27,553
PayPal is a widely known platform for transferring money between entities and for buying products and services online. PayPal Checkout is their API that offers e-commerces a mean to accept payments by letting customers settle their purchase securely and quickly with choosing the payment source of their choice. Customers can decide whether to use their PayPal account balance to pay up, or to select their credit card, bank account, or however they want.
This tutorial aims to provide an approach to integrate payments with PayPal in ReactJS. I will show you my preferred method of implementing PayPal Checkout.
Access the written version of this tutorial:
designcode.io/advanced-react-...
0:00 - Introduction
0:49 - PayPal Developer Account
2:14 - react-paypal-js
3:47 - PayPal Checkout Button
7:01 - PayPalScriptProvider
10:20 - PayPalButtons
11:27 - PayPalButtons
12:57 - Button Props
13:29 - createOrder
15:02 - onApprove
19:59 - onError
22:18 - onCancel
24:24 - onClick
26:18 - Testing
30:16 - Shortcomings
#reactjs #webdev #javascript