I spent some time this weekend looking for a way to get into web3 stuff since it's really not my area, but I knew I couldn't help much, so I focused on a pretty quick example... easy enough for me.
Where it all started?
@forkyishere was going through the usual manjar of Twitter and suddenly found that HIVEPay could do something more than what he saw. So why not give it a try and show how easy it can be?
Immediately diagonally scrolled through the documentation page (https://hivepay.io/docs) and found the basic example quite easy to go for:
<form action="https://hivepay.io/purchase/" method="post">
<input type="hidden" name="merchant" value="blainjones">
<input type="hidden" name="item_name" value="Test Item 1">
<input type="hidden" name="description" value="Test Item Description">
<input type="hidden" name="notify_url" value="https://blainjones.com/notify/">
<input type="hidden" name="return_url" value="https://blainjones.com/thankyou/">
<input type="hidden" name="amount" value="7.00">
<input type="hidden" name="base_currency" value="USD">
<input type="hidden" name="merchant_email" value="me@blainjones.com">
<input type="hidden" name="pay_currency" value="CTP,TOP10T,HBD">
<input type="hidden" name="merchant_name" value="Blain Jones">
<input type="hidden" name="cancel_url" value="https://blainjones.com/cancel">
<input type="hidden" name="merchant_memo" value="Purchase Made By HIVEBUYER">
<input type="submit" value="Purchase">
</form>
Note for readers: The above "merchant_memo" line didn't exist yet. 😜
My target was to come up with a simple way to use that code somewhere for something as simple as a donation, and then I used something as ridiculous as (https://htmlsave.com/) to generate a page and do a test. It worked! I was already 😊 smilling here.
But I want more!
Ok, it was working but I did not know from who was the donation and I didn't want to go through the trouble of using and deploying an IPN Listener for the notifications (where later on I found to be where you can understand more about who sent the donation).
So, I headed to @hivepay-io Discord server (https://discord.gg/CPS9wd4WuK) to search for some answers. And on the help channel, I quickly went through my idea, and not many seconds after, the chat began with @blainjones. Very helpful and in minutes a solution was forged with my request. 24 hours later here I am writing a post about it to record the experience and let everyone find how easy this process of exploring can be.
@blainjones added the new field "merchant_memo" above which can then show which HIVE account send the transaction.
So I gave it a try with my own version (https://tryme.htmlsave.net👉https://tryme.tiiny.site, valid for 7 days):
Hehe, have hacked the original button to be more indicative of what I wanted. Then, if you click that button (that is being hosted on the https://tryme.htmlsave.net I mentioned above) it redirects to the HIVEPAY service.
Here you can select the currencies you have allowed on the code. Also, where you will set your HIVE account for the donation to be sent. This was my 50 cents! 😝
Then, after selecting one of the available payment options, the current value of the token will be calculated and displayed. I have used STARBITS token for this example (from @risingstargame).
HiveKeyChain request will prompt you and then after confirming you will get a quick link to visualize your broadcast to the blockchain.
https://hiveblocks.com/tx/b28488ded3c3bb6e50b000f25d5d1084f09b10ac
Note
While writing this post I have found a little bug in the detection of how many decimal places each Hive-Engine token has, and currently until fixed (HIVEPAY already informed) any token transaction that ends up (on the time of the calculation) with higher decimal places than what the token has, it will not work with HIVEPAY because your account broadcast will not be processed (it's like you did pay at all). Hence the STARBITS transaction above was actually not processed from my account to @hivepay-io, and I did another one with SIM 😎 (that has 3 decimals) that worked. There is no security problem with this as long the merchant never provides the products until the transaction is verified (aka, that @hivepay-io really received the payment).
Above has been fixed ☝☝☝
(@hivepay-io account)
To complete this example, I have created two posts (pages) with @forkyishere (no payout please), to use them as a success page (the thank you) or in case you would cancel.
And voilá!
My code!
What I actually used for the example in this post.
If you wanna give it a try 👉 https://tryme.htmlsave.net (https://tryme.tiiny.site) will last for 7 days!
<form action="https://hivepay.io/purchase/" method="post">
<input type="hidden" name="merchant" value="forkyishere">
<input type="hidden" name="item_name" value="You are donating to Forky!">
<input type="hidden" name="description" value="Do you like what Forky (@forkyishere) is doing? Show some appreciation by donating 50 cents in form of any token listed bellow! Forky will reply back via the HIVE blockchain!">
<input type="hidden" name="notify_url" value="https://hive.blog/hive/@forkyishere">
<input type="hidden" name="return_url" value="https://hive.blog/hive/@forkyishere/thank-you">
<input type="hidden" name="amount" value="0.5">
<input type="hidden" name="base_currency" value="USD">
<input type="hidden" name="merchant_email" value="">
<input type="hidden" name="pay_currency" value="SWAP.DOGE,SWAP.EOS,SWAP.BTC,SWAP.LTC,LEO,SIM,STARBITS,CTP,PIZZA,LEN,BEER,WEED,BUDS,ASH,HIVE">
<input type="hidden" name="merchant_name" value="Forky!">
<input type="hidden" name="merchant_memo" value="Donation from HIVEBUYER">
<input type="hidden" name="cancel_url" value="https://hive.blog/hive/@forkyishere/that-s-alright-see-you">
<input type="image" src="https://images.ecency.com/DQmcHQi6zji1adP29WXNpaBAwYn8syzg2JQHLgXC8vL2tXw/donate_hivepay.png" alt="Donate With HivePay">
</form>
And looks like that's it 👌
Learn new things, play blockchain games
and don't forget to have lots of fun!
(credit @doze) 👆ℹ️
Cryptocurrency 💳Cards
Crypto.com | Crypterium | TenX (retired) | Revolut (wen?) | Wirex (fuckdup) |
---|---|---|---|---|
Thanks for creating this post! I have fixed the issue with precision on specific tokens. Should all be good now.
I am glad I was able to help you out with adding the extra field to better cater to our merchants!
Thank you for such quick response solution and fix ;) I will update the post soon.
Congratulations @forykw! You received a personal badge!
You can view your badges on your board and compare yourself to others in the Ranking
Check out the last post from @hivebuzz:
Support the HiveBuzz project. Vote for our proposal!
4 years! Gosh... I need to celebrate this properly.
Happy Hive Birthday @forykw
🎉🎈🎂🎉🎈
This is a great way to be able to pay each other with out involving the banks or other payment processors. Merchant accounts cost a fortune to use and it takes forever to get money back and forth. So glad you're using this on your site and it's working for you. Also you don't have the charge back issues. Another plus!
Well, hivepay is the processor here. Although everyone can see the transactions and the best part is that you can pay in form of any token of HIVE, including itself.
It's really an awesome way to make and take payments, @forykw! Not having to wait on the bank to send us our money is the best part.
!ENGAGE 10
Made in Canva
@lisamgentile1961
___
ENGAGE
tokens.Nice, great example of a case usage for the blockchain. Too bad it won't create as much hype as that ADA wine lol I can't believe that is an actual thing still...
We will get there. More websites more volumes and then it booms!
Awesome to see hive engine tokens being used. Thanks for sharing
Yeah... this is a major flipper to the markets... will also increase volume in general I am sure.
A simple way to get more selfish and greedy people, and to ruin the Hive blockchain even more.
Why? Everyone on basically any social app has "donations"... and if you look at all those super chat donations on youtube... why people keep giving K's of USD to someone... it's not because of the method... is because of the value of the work they are trying to support/thank. It will always exist, no matter what, anywhere.
I agree. 🙂 In conventional social media platforms, we post, comment, and make direct messages to other people, mostly because we know them and we want to connect with them, not to mention easy ways to donate (minus applicable fees) on some of those platforms. 😅
What kind of donations are on Hive?
All I see is a bunch of selfish and greedy people.
Almost no one cares about each others posts.
Almost everyone is focus on their own posts.
The real, human comments are rare.
Most of the comments are bot comments.
This platform is very disappointing.
What are you doing to make it better?
This will not be positive or bring any value in my opinion... so, why mention it? I mean... you are lately always complaining... and I understand the frustration, but at least every time I try to have a constructive positive conversation with you, you never get it... and keep complaining or having a very "ohh this is not worth it..." attitude, but then you keep posting and being here... and doing challenges... that you already told me in a comment somewhere that is not worth it... I mean... be consistent. You are not making any sense.
Be positive and constructive... negativism does not call anyone to check your posts... And stop trying thinking posting will make you rich or make your life fully sustainable. Bring something useful to the table. We are all struggling with something, but if we keep evidencing what we don't want around... then it's hard to improve.
You are here for a long time... and I would have thought you have learned more. I could complain too... but what's the point? I mean.. I could complain others have 1000$ value posts and I have 2-10$ ones that would fit the same category... but what's the point? You missing the big picture mate... social!!! This is not something that will be fair or just for everyone... like social life is not.
!ENGAGE 10
!LOVE
and I can't recall if you like alcool... but have a !BEER and chill.
What the most of the users are not doing.
Regularly engaging with others. I am usually in good places on the engagement league.
And I am giving !PIZZA and other tokens for interactions.
Both under my own posts and under other people's posts.
Sometimes I also do giveaways, but usually almost no one cares about it.
!ENGAGE 15
!LUV
I hope you you will overcome soon.
Thank you for the support and for the tokens.
Have some !PIZZA.
!BEER with !PIZZA or !WINE (when it works) does result in a lot of !ENGAGE LOLOL
ENGAGE
today.View or trade
BEER
.Hey @saachi, here is a little bit of
BEER
from @forykw for you. Enjoy it!Learn how to earn FREE BEER each day by staking your
BEER
.Yes, I consider that there are many selfish ones. but there are also many good people behind the screen ... I say it, because I have had real contact with many and they are so nice! Complaining about whether or not you are voted in will not help you. For my part, I wrote about what I like, I try to improve every day ... and the rest, he left it there.
LOL... just realized now I have been writing !LOVE instead of !LUV LOLLOLOLOL
!LOVE
Hi @pialejoana, you were just shared some LUV thanks to @forykw. Holding 10 LUV in your wallet enables you to give up to 3 LUV per day, for free. See the LUV in your wallet at https://hive-engine.com or learn about LUV at https://peakd.com/@luvshares https://ipfs.io/ipfs/QmUptF5k64xBvsQ9B6MjZo1dc2JwvXTWjWJAnyMCtWZxqM
@forykw! I sent you a slice of $PIZZA on behalf of @xplosive.
Learn more about $PIZZA Token at hive.pizza
Beee posiiittiiiiiiiiveeeeeee!!!
!ENGAGE 10
!LOVE
and I can't recall if you like alcool... but have a !BEER and chill.
Thank you for the support, but if (almost) everything is negative around me both in real life and on the Hive blockchain, then how could I be positive?
I live with multiple disabilities.
I live in financial discrimination in Hungary.
I get a low ($250 USD per month) pension-like income.
I work in a 4 hours per day part time job.
My income still does not reach the minimum wage, which is $550 USD.
I often have to decide between paying bills/rent and buying food.
I cannot even earn back the price of the monthly mobile internet subscription price on Hive, so technically speaking, I do not earn anything on the Hive blockchain, just making my life more difficult. It would be better to cancel my mobile internet subscription, and save that money. Or spend at least a part of it on food.
ENGAGE
tokens.View or trade
BEER
.Hey @xplosive, here is a little bit of
BEER
from @forykw for you. Enjoy it!Learn how to earn FREE BEER each day by staking your
BEER
.Sorry, with more LUV in your wallet, you can give LUV from the bot daily, for free. Get more LUV at https://tribaldex.com/trade/LUV
View or trade
BEER
.Hey @xplosive, here is a little bit of
BEER
from @forykw for you. Enjoy it!Learn how to earn FREE BEER each day by staking your
BEER
.I wonder what I can sell now if I can get links for payment in crypto lol. This is another step closer to mainstream use of crypto.
Slowly growing into what will be an effective takeover... around price and Hype... justified hype.
I am eager to see the next HF changing some minds...soon.
Its been longed i looked into any development going on hive Blockchain i think i need to re arrange my time and give hive more attention i feel like am lost in this world
There is lots to consume all the time indeed.
I even give it a try and donated you in CTP Tokens!
That was so cool! But I'm biased because I love Hivepay!
I will cross-post this to the HivepayMerchants Communityts Community if that is ok :)
Ha! Did know that community existed too. Yes please go ahead. Thanks for the CTP tokens!
@forkyishere go fetch me some posts for me to curate!!!
Yes master!
lol I've been neglecting that community but is good to have posts like these in one place :)
This is actually pretty amazing! Do you see hive adding in a stable coin into the mix to allow for easier transactions into hive itself and these tribe tokens? I believe that would be a powerful asset to have within hivepay?
Hi there, HIVE already has a "stable" ish coin (its HBD)... it's currently not working very well as a stable coin because of "many" cash flows practices and a now in place automatic cash conversion strategy/process. It has been fluctuating still a lot, so the community might still need to come up with another solution.
On hivepay you can select basically any token on HIVE-Engine, and HIVE or HBD (HIVE-backed Dollars)...
Its configurable on the field:
<input type="hidden" name="pay_currency" value="SWAP.DOGE,SWAP.EOS,SWAP.BTC,SWAP.LTC,LEO,SIM,STARBITS,CTP,PIZZA,LEN,BEER,WEED,BUDS,ASH,HIVE">
You can add/remove as you like.
Thanks for the !ENGAGE 10
We hope that @hbdstabilizer becomes more efficient in stabilizing HBD over time.
!PIZZA
@forykw! I sent you a slice of $PIZZA on behalf of @savvyplayer.
Learn more about $PIZZA Token at hive.pizza (7/10)
ENGAGE
tokens.Any business idea in your mind?
Many if I had the time to execute them... that's sort of the reason I am behind @atexoras on the long term. But I need help, and I can't just hire people (yet) so I am going on turtle mode, experimenting with what I can.
Creating new use cases for Hive and its second-level tokens is one way to contribute to their growth.
Really good work!
!BEER
!LUV 1
I will come back to this topic I am sure... all I need is either some time (as usual) or someone to help me on web coding stuff.
Congratulation for your work. This is the kind of project the community should support so that hive commerce becomes a reality. Happy #Hive Birthday @forykw
We can all help build... step by step... =)
This will come in handy as a means of tipping on stream platforms
So great work again :)
I not a streamer, but maybe one day I will do this for my sons... as they are beginning that journey.
Cool. Great teamwork 👍😀
Hi @forykw, you were just shared some LUV thanks to @libertycrypto27. Holding 10 LUV in your wallet enables you to give up to 3 LUV per day, for free. See the LUV in your wallet at https://hive-engine.com or learn about LUV at https://peakd.com/@luvshares https://ipfs.io/ipfs/QmUptF5k64xBvsQ9B6MjZo1dc2JwvXTWjWJAnyMCtWZxqM
View or trade
BEER
.Hey @forykw, here is a little bit of
BEER
from @libertycrypto27 for you. Enjoy it!Learn how to earn FREE BEER each day by staking your
BEER
.