| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,8 +78,9 @@ There's even a fancy JavaScript API if you'd like to pragmatically create your b | |||
| 78 | 78 | **PAYPAL.apps.ButtonFactory.config** | |
| 79 | 79 | This can be overridden to change the default behavior of the buttons. | |
| 80 | 80 | ||
| 81 | - **PAYPAL.apps.ButtonFactory.create(data, type, parentNode)** | ||
| 81 | + **PAYPAL.apps.ButtonFactory.create(business, data, type, parentNode)** | ||
| 82 | 82 | Creates and returns an HTML element that contains the button code. | |
| 83 | + > **business** - A string containing either the business ID or the business email | ||
| 83 | 84 | > **data** - A JavaScript object containing the button variables | |
| 84 | 85 | > **type** - The button type, e.g. "buynow", "cart", "qr" | |
| 85 | 86 | > **parentNode** - An HTML element to add the newly created button to (Optional) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments