create account

GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM] by steve-walschot

View this thread on: hive.blogpeakd.comecency.com
· @steve-walschot · (edited)
$30.20
GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]
# GraphenePay, one solution for all Graphene based blockchains. 
### Full PHP code to be scalable and easy to integrate on any webhost.

http://i.imgur.com/4efF6WW.png

----
http://i.imgur.com/m4DIKV4.png
## Any coin that runs on graphene.
Simply adapt the global configuration file to start accepting payments for your specific coin.

## Dedicated URL for both payments as donations. 
No more messing around with 0 values. Simply use the `/pay/` or the `/donate/` URL.

## Websockets or RPC, you decide!
GraphenePay offers full support for `WSS` connections. This ensures that even the weakest backend can run the code to offer payment solutions. Rather use your own node? Simply switch to `RPC` and you're good to go.

## Filters and functions to ensure being live.
The route file has now some special filters that check for connectivity to the node first. This ensures that your services are always up when a customer initiates his payment.

## 100% decentralized.
Full open source codebase so anyone can start accepting payments on a Graphene blockchain coin.

## Many improvements.
GraphenePay has been build around SteemPay, making it more scalable and lightweight.


----
http://i.imgur.com/podTE4I.png
-----

# Running on your server for demo and docs

### Requirements

 - PHP (>5.5 or 7.0)
 - mcrypt enabled in your php.ini
 
### Setup
 - git clone https://github.com/graphenepay/graphenepay-dev
 - cd graphenepay-dev
 - php artisan serve
 
To specify your host and port use `php artisan serve --host HOST:PORT`
Go to the URL printed in your console. **Enjoy!**

### Having trouble? 

#### Mcrypt issues.

PHP 7
`sudo apt-get install mcrypt php7.0-mcrypt
`
PHP 5
`sudo apt-get install mcrypt php5-mcrypt
sudo php5enmod mcrypt
sudo service apache2 restart`

#### Permission issues
`chmod -R 777 /app/storage`


----
http://i.imgur.com/xX1hCOz.png
----
# Global configuration file (.env.php)

| PARAMETER       |  Information       |
| ------------ | ------------ |
|  CONNECTION_PROTOCOL | Set value to `RPC` for a local wallet or `WSS` for a public node by websocket.|
|  GRAPHENE_PUB_NODE | Set the public web socket address to connect to. For example, `wss://steemit.com/wspa` for the STEEM blockchain.|
|  GRAPHENE_BLOCK_EXPLORER | Set the correct blockexplorer for the selected chain. For example, `https://www.steemd.com` for STEEM.|
|  RPC_XXX Settings	 | Set your local wallet RPC settings. `HOST` and `PORT`. VERSION should not be altered.|
|  STEEMPAY_ACCOUNT | The account that should receive the payments. In most cases, this will be your account. Do not use @ !|
|  RECEIVER_HISTORY_COUNT | Sets how far in the sender's history to look for. Default = `100`, max = `1000` transactions.|
|  ENABLE_DEBUG | Only set to true during testing. Never set true on a live server!|

----
http://i.imgur.com/2f3T53Y.png

## Github:  https://github.com/graphenepay/graphenepay-dev

This is a functional, yet **experimental** code. Since all payments are made on the blockchain, funds will always be safe. Make sure to check Github for updates, as they will happen on a regular base.

## I found some things in your code!
Good! Please make a pull request or contact me on steemit.chat

## GraphenePay funding
All fundings will come from related posts and my **witness** steve-walschot. Please take your time to upvote my witness at https://steemit.com/~witnesses


# Truly yours, steve.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 348 others
👎  , , , ,
properties (23)
authorsteve-walschot
permlinkgraphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem
categorygraphene
json_metadata{"tags":["graphene","steempay","graphenepay","payment","timeforachange"],"image":["http://i.imgur.com/4efF6WW.png","http://i.imgur.com/m4DIKV4.png","http://i.imgur.com/podTE4I.png","http://i.imgur.com/xX1hCOz.png","http://i.imgur.com/2f3T53Y.png"],"links":["https://github.com/graphenepay/graphenepay-dev","https://steemit.com/~witnesses"]}
created2016-10-25 18:03:57
last_update2016-10-25 20:45:09
depth0
children14
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value29.226 HBD
curator_payout_value0.969 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,394
author_reputation67,732,836,345,004
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,618,865
net_rshares48,010,298,022,092
author_curate_reward""
vote details (417)
@bitcoiner ·
`donatate`?
👍  
properties (23)
authorbitcoiner
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t203219592z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-25 20:32:30
last_update2016-10-25 20:32:30
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length11
author_reputation28,017,014,641,958
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,619,821
net_rshares201,631,779,844
author_curate_reward""
vote details (1)
@cass · (edited)
$3.86
# PLEASE BE CAREFUL WITH THIS PROJECT; AS WELL AS STEEMPAY & GOLOSPAY…

Hey steve, how about paying back the loan of 1.800 EUR i gave a few weeks before? Since 2 weeks now every day another excuse .. why u aren't able to pay back. I'm just tired about your excuses nor i can trust you anymore! Pay back the loan. It's easy ..
👍  , , , , , , , , , , , , , , ,
properties (23)
authorcass
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t193835975z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-25 19:38:36
last_update2016-10-25 19:47:21
depth1
children2
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value2.988 HBD
curator_payout_value0.875 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length325
author_reputation87,554,098,144,619
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,619,464
net_rshares15,911,658,671,149
author_curate_reward""
vote details (16)
@liondani ·
A comment like that coming from @cass is alarming for sure...
properties (22)
authorliondani
permlinkre-cass-re-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t225702765z
categorygraphene
json_metadata{"tags":["graphene"],"users":["cass"]}
created2016-10-25 22:57:03
last_update2016-10-25 22:57:03
depth2
children1
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length61
author_reputation95,095,146,236,111
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,620,617
net_rshares0
@cass ·
Will make a public update about this week!
👍  
properties (23)
authorcass
permlinkre-liondani-re-cass-re-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161026t074535503z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-26 07:45:36
last_update2016-10-26 07:45:36
depth3
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation87,554,098,144,619
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,622,919
net_rshares205,374,441,899
author_curate_reward""
vote details (1)
@doitvoluntarily ·
fantastic
properties (22)
authordoitvoluntarily
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t180750214z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-25 18:07:51
last_update2016-10-25 18:07:51
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation1,413,017,592,339,131
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,618,889
net_rshares0
@donchate ·
> This is a functional, yet experimental code.

This should be the first line in the post and/or title, before all the ambitious statements.
properties (22)
authordonchate
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161026t012719276z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-26 01:27:21
last_update2016-10-26 01:27:21
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length140
author_reputation956,784,034,700
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,621,385
net_rshares0
@dragosroua ·
congrats!
properties (22)
authordragosroua
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t181814117z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-25 18:18:15
last_update2016-10-25 18:18:15
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation372,798,229,806,288
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,618,953
net_rshares0
@jlufer ·
excellent thanks to disseminate information
properties (22)
authorjlufer
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t180904066z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-25 18:09:06
last_update2016-10-25 18:09:06
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length43
author_reputation1,425,770,140,436,719
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,618,894
net_rshares0
@michaelstobiersk ·
I followed.
properties (22)
authormichaelstobiersk
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161108t154228449z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-11-08 15:42:33
last_update2016-11-08 15:42:33
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length11
author_reputation28,639,834,562,096
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,722,661
net_rshares0
@pnc ·
Hi Steve, for my own education, what use case can this be usefull for? Is GraphenePay a framework build of Graphene technology that could help build payment solutions? Thanks
properties (22)
authorpnc
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t190741258z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-25 19:07:42
last_update2016-10-25 19:07:42
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length174
author_reputation31,815,740,675,930
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,619,264
net_rshares0
@roelandp ·
$0.02
opened issue: https://github.com/graphenepay/graphenepay-dev/issues/1
👍  ,
properties (23)
authorroelandp
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t215147321z
categorygraphene
json_metadata{"tags":["graphene"],"links":["https://github.com/graphenepay/graphenepay-dev/issues/1"]}
created2016-10-25 21:51:48
last_update2016-10-25 21:51:48
depth1
children2
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.017 HBD
curator_payout_value0.002 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation691,853,561,683,920
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,620,314
net_rshares377,650,462,675
author_curate_reward""
vote details (2)
@roelandp ·
$1.67
Ps `chmod -R 777 /app/storage` on those dirs is most probably not safe: 
- https://laracasts.com/discuss/channels/laravel/appstorage-chmod-777-safe?page=1
- https://laracasts.com/discuss/channels/general-discussion/laravel-framework-file-permission-security/replies/163407
👍  , ,
👎  , , , , , , , , , , , , ,
properties (23)
authorroelandp
permlinkre-roelandp-re-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161025t215532744z
categorygraphene
json_metadata{"tags":["graphene"],"links":["https://laracasts.com/discuss/channels/laravel/appstorage-chmod-777-safe?page=1","https://laracasts.com/discuss/channels/general-discussion/laravel-framework-file-permission-security/replies/163407"]}
created2016-10-25 21:55:33
last_update2016-10-25 21:55:33
depth2
children1
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value1.277 HBD
curator_payout_value0.393 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length272
author_reputation691,853,561,683,920
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,620,341
net_rshares8,946,887,888,234
author_curate_reward""
vote details (17)
@jesta ·
$0.02
It's very common for storage folders in frameworks like laravel to require write permissions to these folders. These folders are also out of scope for the web user (`/app/public` is generally the webroot), so user's don't just get to write to them as if they were public.

Most likely if you were to configure this in a production environment, you'd change the owner of the folder to that of the web server, and then make sure the owner has write permissions based on it's username and group. 

`chown www-data:www-data app/storage` or something.

But it has to be writable, and shouldn't be a major concern.
👍  , , , , , , , , , , , ,
properties (23)
authorjesta
permlinkre-roelandp-re-roelandp-re-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161027t084528960z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-10-27 08:45:27
last_update2016-10-27 08:45:27
depth3
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.015 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length608
author_reputation140,605,453,893,072
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,630,855
net_rshares809,091,813,734
author_curate_reward""
vote details (13)
@simonjay ·
That does sound really good upvoted back thanks.
properties (22)
authorsimonjay
permlinkre-steve-walschot-graphenepay-one-application-endless-possibilities-php-or-wss-or-rpc-golos-steem-20161110t180058962z
categorygraphene
json_metadata{"tags":["graphene"]}
created2016-11-10 18:01:21
last_update2016-11-10 18:01:21
depth1
children0
last_payout2016-11-26 01:03:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length48
author_reputation79,432,694,207,847
root_title"GraphenePay: One application, endless possibilities [PHP|WSS|RPC - Golos-STEEM]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,738,813
net_rshares0