In this lesson, we are going to Add the Paypal button to the project
so we are going to have payment functionality on our project.
Please share your feedback to make this better every day.
Github Code Changes: https://bit.ly/3aCsvlr
Demo: https://foodmine-new.herokuapp.com
Contact:
[email protected]YOU WILL See
00:00 Intro
00:18 Generating Paypal button component
00:40 Adding the component's tag to the payment page
01:56 Adding Paypal SDK
02:30 How to get a client id from Paypal
03:53 Adding Paypal buttons to the ts file
06:54 Adding pay api to the order router
09:49 Adding pay method to the order service
10:36 Injecting missing items into the component
11:11 How the OnApprove works
11:59 Adding PayPal buttons tag to the component
13:28 Fixing the currency problem
14:25 How to use Paypal sandbox accounts
15:33 Checking the saved paymentId on the DB
Contact me:
Website: https://codewithnasir.com
Linkedin: https://www.linkedin.com/in/nasirjd
Github: https://github.com/nasirjd