All you need to host a paybutton on your site is the following snippet of code:
<script src="https://paybutton.cash/pre-release/v0.1/js/paybutton.min.js">
<button
class="pay-button"
address="bitcoincash:bch_address_here"
>
</button>
The following example can be used to access more features:
<script src="https://paybutton.cash/pre-release/v0.1/js/paybutton.min.js">
<button
class="pay-button"
button-text=""
button-text-2=""
amount=""
amount-type=""
address="bitcoincash:bch_address_here"
success-msg=""
paywall-field=""
success-callback=""
>
</button>
Here is a brief description of each additional attribute:
PayButton class/button type: This will be refined in a future release. Choices currently are: (“pay-button”, “pay-button rev”, “pay-button bare”, “pay-button wa”, “pay-button warev”, “pay-button wabare”)
class="pay-button"
Button text pre-hover/selection Example: (button-text=”Tip us BCH!”) Optional
button-text=""
Button text during hover/selected. Example: (button-text-2=”Click to send BCH”). Optional
button-text-2=""
Amount (units) button is set to. Example: (amount=”1″). Optional
amount=""
Type of amount. Examples: (amount-type=”BCH”, or amount-type=”Satoshi”, or amount-type=”USD” Or 160+ other currency types) Optional
amount-type=""
Message upon successful transaction. Examples: (success-msg=”Thanks for supporting PayButton!”)
success-msg=""
Class name of hidden divs (can be multiple divs with same class name) that you would like to be viewable after successful transaction. Example (paywall-field=”prem-content”)
paywall-field=""
The following will allow those with the know how, to create their own functions/code that are called upon successful transaction.*
success-callback=""
Known Issues:
Upcoming: We have a few ideas, however nothing set in stone just yet beyond a simple paybutton.
Here are a few concepts that we will touch upon at a later date. (These may change greatly shortly)
Current PayButton Modal popup:
https://i.imgur.com/nlHTymX.png
Static Badge: (For instance, next to a live view of bunnies with treat machines)
https://i.imgur.com/tDNuPUr.png
Donation Badge: (Concept will most likely change greatly once refined)
https://i.imgur.com/TjAMTw9.png
Not Pictured:
PayButton Carts. More on that later.
If you like what we are doing, and like where we are heading, feel free to donate using any of the buttons on our test page (https://paybutton.cash/test). Actual Donation Page will be announced at a future date.
We will keep the pre-release folders up, even upon new releases until further notice.
Enjoy!