A project to exercise and test one's understanding of PayPal Smart Buttons.
The purpose of this project is to implement numerous variations of Smart Buttons. By going through this exersize, we familiarize ourselves with both the configurations overall.
Implement individual checkout experiences using various Smart Button configurations. Including:
- Horizontal Orientation
- Vertical Orientation
- Various FUNDING types
- Various PayPal Button Types (Checkout, Pay, Buy Now, PayPal button)
- Credit w/second button
- Multi-Currency and Multi-Language Combinations (see supported currency and locale codes)
- Combinations of the Above - depending on your appetite for experimentation.
HINT: not all combinations work together. For instance, the FUNDING.ELV type works only with Germany (DE) and Austria (AT), FUNDING.CREDIT works with US, GB and DE. Use these combinations to test your understanding of the options available. This is part of the challenge!
- Put your REST App 'clientId' in the appropriate location of template.html (line 88)
- Download a copy or clone this project to use as your base of work.
- Copy template.html for each of your examples that you would like to preserve.
- Import pp_rest_postman_collection.json into Postman for auth, capture, void, etc.
- Page must render.
- Complete payment flow. The included example completes the "execute" portion of the payment cycle.
- Utilize the Postman collection included (or any PayPal REST collection used thus far) to complete payment life cycle events as desired.
- Funds are deposited in the target sandbox merchant account as required by the currency and funding type.
Try any of the following client side implementations depending on your interest: