STEEMPAYMENTS beta LIVE! accept STEEM NOW in a comment, website, anywhere! Opensource PHP friendly!
The moment we've all been waiting for has finaly arrived. SteemPayments is live!
I've called this first version beta because i still need to make some code cleanups and complete the full documentation.
Opensource payment gateway for everyone!
Todo the following hours and days
- Further complete the documentation
- Increase the number of working examples
- Prettify the code
- Add more nodes
- Community contest for some nice buttons/logo
- Improve the overall topic and SteemPayments website
- Shopping cart plugins (WooCommerce first)
- Donation button generator
- GUI update by @cass (see https://steemit.com/ui/@cass/steem-pay-ment-button-design-concept-and-design-process-part-1)
This topic will be updated continuously until i'm satisfied and no longer call SteemPayments a beta version. Make sure to follow this topic to keep updated! Git cloners, make sure to update the Git as there are some more changes to come soon.
From highend to lowend code
This project started as a very complex, laravel based module for myself. Then i figured that Steemit is full of highly skilled developers (take a look at steemtools.com) but we all forgot what could be the most important slice of the pie: PHP only users
I assume that most of the websites out there are running on shared hosts, having no console access, or programming skills to start compiling code. They have simple PHP based websites running a shopping cart if lucky, or just offering items in HTML table shape.
I started downgrading my code to run on even the most basic webhost, needing nothing more than PHP/Ajax.
This process was like taking a step in a timemachine, eliminating all the good things frameworks give us today, and going back to POST parameters like in the good old days (hello 1998!).
You'll notice some of that 'oldstyle' code around, just so you know, it's intended that way (Note to fellow dev's).
Using steempayments as frontend.
Let's start by rolling out the service most requested - PHP buttons!
Want to start accepting a payment or donation? Good! Here's how:
![]() |
![]() |
![]() |
Yup. That's it. Click on it to see for yourself (and feel free to donate) :-)
Breakdown:
The default URL to start a payment is http://www.steempayments.com/payment
Update use http://steempayments.com/payment/static from inside comments and posts!
Every request needs the following parameters
$data = array(
'paymentID' => Input::get('paymentID'),
'receiver' => Input::get('receiver'),
'amount' => Input::get('amount'),
'callback' => Input::get('callback'),
);
You can send it both in json or URL parameters. So to create a payment/donation button, all you need to do is fill in the needed parameters, and you're good to go. The above button for example uses URL parameters.
http://steempayments.com/payment?receiver=XXX&amount=0&paymentID=XXX&callback=XXX
This could easely be poured into a button style by creating a href with some nice image.
<a href="YOUR_URL"><img src=http://steempayments.com/img/button/steem01.jpg></a>
Alternatively, the same goes to HTML forms. Just name your inputs as the required parameter ID's.
More examples can be found at http://steempayments.com/example/ on how to create a payment request from your website. Make sure to read the Github docs as well.
IMPORTANT !
Required parameter details
PaymentID Generate a new ID by calling the SteemHelper PHP class, or generate in JS (Github code).
Receiver Plaintext receiving account (or global variable in PHP).
Amount Plaintext amount needed. Requires 3 decimals [space] SBD or STEEM ( "0.001 STEEM").
Callback urlencoded URL to return after a successfull payment.
Using the PHP files to host everything yourself
All the files can be found on the SteemPayments Github. Documentation resided inside the docs folder.
Public RPC-API servers to connect
This list will be updated as more nodes will be setup. You can find the list inside the github folder.
Question/feedback/bugs/suggestions
Feel free to join me on https://steemit.chat/channel/steempayments
Beta version - What this means
Alpha version describes a development status that usually means the first complete version of a program or application, which is most likely unstable, but is useful to show what the product will do to, usually, a selected group—and is also called preview version; the beta version is usually the last version before wide release, often tested by users under real-world conditions.
Bugs could still occur, but all payments are made directly to the blockchain, so transactions are always safe from errors.
I've been following this, and I'm pretty excited about it. I'd love to see a version added to the Omnipay PHP library. Hopefully I can play with it myself soon. I'd love to add this to FoxyCart (we support around 100 gateways including Coinbase and BitPay) and have thousands of stores using the platform. I've been discouraged the last few years by how few people turned on bitcoin payment options. Hopefully it will be different with SBD.
What do you think has been the primary cause behind that ?
I don't know, but I have some ideas. I've blogged about bitcoin many times, including on our company blog here:
http://www.foxycart.com/blog/why-does-foxycart-support-bitcoin
http://www.foxycart.com/blog/why-shouldnt-you-accept-bitcoin
http://www.foxycart.com/blog/integrating-foxycart-coinbase
We saw very little interest. I think many merchants only do what their customers demand for them to do. It makes no sense to add a payment method your customers aren't demanding. The number of sales they are potentially losing by not offering it is near zero and they don't think they'll get enough new customers with it to justify the perceived risks.
What are those risks?
Well, many just hear the mainstream media headlines when it comes to bitcoin and those are usually filled with scare stories of theft, drug dealing, child trafficking, hackers, and those "evil anarchists." Yes, I know, it's sad what passes for "news" and "journalism" these days. Few, if any, listen to experts like Andreas Antonopoulos or do real research to figure out how little bitcoin is used for crime compared to cash. So the risks include:
Ultimately though, I think it's a chicken/egg problem. If enough customers demand a bitcoin/SBD payment system, merchants will add them. When they do, we'll be there to help.
Moral of the story: Every time you buy something, ask the merchant if you can pay with SBD or bitcoin. If they look at you funny, explain it quickly and succinctly and move on.
I always try to counter that by letting people know that there are sites devoted to helping people find where they can spend their BTC, and if you're listed there, it's basically a free ad for your business. Plus all the other benefits... no chargebacks, low fees, etc. ... but yeah it can be difficult to get businesses to adopt it. I was talking with someone at Whole Foods Market about the prospect... there was a little interest, but nothing did come of it unfortunately. Not from a lack of follow-up though ;)
Yeah, I tried over and over again, both in person and via blogging to get people interested. To me, crypto first needs a killer app for mass adoption. Steemit.com might be that app.
I know this isn't directed at me, and I think Luke might have some more insights that I'd like to hear. That being said, I think the main reason for it is that really the only people that want Bitcoin payment options are people who have Bitcoin. And that's a very thin slice of the population overall. The barriers for Bitcoin's success as a payment option are the same as Bitcoin as a whole... Perhaps the most relevant here is that for most people it represents the solution to a problem that doesn't exist. They can buy things online with their VISA or PayPal, so what is the advantage for the average consumer?
Yep. Until people realize, "Oh, wait, the money I'm using is backed by violence and controlled / manipulated by a small group of central bankers?" then they have no motivation to explore something new. The number of people who come to that realization is very small, but I do think it's growing.
Another problem with BTC is that it doesn't track the US Dollar. Steem Dollars could fill a gap here (and possibly become a reliable exchange currency) since people can hold them without fear of inflation or deflation relative to USD.
Thanks for this, it's great! I will be implementing this in the future for sure.
I have one remark about the payment window... It would be great if we don't have to manually go to the @username/transfers page...
For example if a user can fill in their own username once, then the payment page remembers this with a cookie...
Then follow up visits can retrieve this cookie and offer a method to open the transfer window page without having to type it..
Like my comment? Donate!
Will implement it! Thank you
For donation you need to set amount=0 ;-)
Thanks for showing us this jump page!
donation button generator would be great!!
Edit: added to @bhuz Find&Reward post, hopefully this great tools got more attention..
Added to ToDo! Great idea!
Testing to see if you can accept a donation in the comments
edit No way to generate a new ID for every call inside a comment. Need to brainstorm about that one :)
UPDATE use http://steempayments.com/payment/static as URL from inside comments :-)
Trying to send a donation to you but so far it won't finish loading. It just keeps spinning as in the image but doesn't go to the next step.
![](https://steemitimages.com/640x0/http://i.imgsafe.org/43b8a45e46.png)
See the edit :) Already found a solution, will implement it later today so you can create a donation button from within a comment
Great! I look forward to following your progress
Wow amazing initiative and work done here! This will add further value and credibility to the network and I really look forward to using it. It's members like you that benefit us all!
Any plans to add SteemUSD?
You can send whatever you like. To accept a fixed amount just enter "1.00. SBD" or "1.000 STEEM". As far as donations go, the donator can send whatever he likes. SBD or STEEM.
Awesome!
very easy & simple!
I will want to use it on my site.
thank you!
This is so AWESOME! You better believe I am going to put this on my site!!!
testing :
![gekko donate](https://steemitimages.com/640x0/http://steempayments.com/img/button/d02.jpg)
nice work, keep it up @steve-walschot 8]
Thx!
The flood gates will open.