Hi, I've just create a simil html for Paypal.
It's the modified original HTML of the "Smart Button".
If you want other button, ask.
Here's the tutorial
Download the HTML file
Go to "https://www.paypal.com/us/home" -------> Sign In/ Sign Up
Sign in or create an account
Once in the dashboard go to developer
Go to "Get API Credentials"
Choose Sandbox (testing) or Live ---> Create App
Choose the name ---> Create App
Copy the Client ID
Open the HTML by notepad++ or visual studio code
Put the copied Client ID over n1
and the value n2 is the currency (USD dollar, EUR euro; here's the complete list )
Save and open app inventor
Create a new project, add a WebViewer, a notifier and go to the blocks.
Put the code in the photo or copy from the example
WARNING!!! It works only in the main page
Here the tutorial with the immages.
General block code:
Sample e-commerce code:
Sample e-commerce aia:
Peluchazon.aia (341.9 KB)
HTML Download:
Here