elementsproject / woocommerce-gateway-lightning Goto Github PK
View Code? Open in Web Editor NEWA WooCommerce gateway for lightning payments
A WooCommerce gateway for lightning payments
Woocommerce
The plugin was not activated, because it caused a fatal error.
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in /home/user2040175/www/d0015477.atservers.net/wp-content/plugins/woocommerce-gateway-lightning/woocommerce-gateway-lightning.php on line 224
Hello,
This repository is listed on the Awesome Lightning-Network list, which is a collection of useful lightning-network projects. However, it seems that the 'lightning-network' topic is missing from this repository's topics.
Adding the 'lightning-network' topic will help users discover your project more easily and recognize its relevance to the lightning-network ecosystem. To add the topic, please follow these steps:
Thank you for your attention and for contributing to the lightning-network community!
When php-curl
ist not installed proceeding to payment yields the following error message:
Internal Server Error
The apache error log referes to php-restclient/restclient.php line 135. This call to curl should be wrapped into try catch and yield a helpfull error message. However I cannot find the referenced file in the git repo (so I could not look into the source code)
[Fri Jan 26 00:15:53.203187 2018] [:error] [pid 3167] [client ::1:36028] PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/wordpress/wp-content/plugins/woocommerce-gateway-lightning/vendor/tcdent/php-restclient/restclient.php:135\nStack trace:\n#0 /var/www/html/wordpress/wp-content/plugins/woocommerce-gateway-lightning/vendor/tcdent/php-restclient/restclient.php(113): RestClient->execute('/invoice', 'POST', '{"currency":"BT...', Array)\n#1 /var/www/html/wordpress/wp-content/plugins/woocommerce-gateway-lightning/vendor/elementsproject/lightning-charge-client-php/client.php(22): RestClient->post('/invoice', '{"currency":"BT...', Array)\n#2 /var/www/html/wordpress/wp-content/plugins/woocommerce-gateway-lightning/woocommerce-gateway-lightning.php(114): LightningChargeClient->invoice(Array)\n#3 /var/www/html/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(804): WC_Gateway_Lightning->process_payment(10)\n#4 /var/www/html/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(986): WC_Checkout->process_order_payment(10, 'lightning' in /var/www/html/wordpress/wp-content/plugins/woocommerce-gateway-lightning/vendor/tcdent/php-restclient/restclient.php on line 135, referer: http://localhost/wordpress/index.php/checkout/
This is particular important for the people who are running on managed hosting and have no access to error logs and can't know if php curl is installed.
Would like to not show and require all the billing/address details
Depends on ElementsProject/lightning-charge#7.
Lightningd
is running and Charged
is running as well. Charged
shows HTTP server running on localhost:9112
. My router port is open, and the lightning charge server on the plugin settings page points to my ip:9112.
However, when I try to create a payment using LN, Woocommerce shows failed saving invoice
Especially for new stores it's useful to show the node URI, though perhaps it should be discrete to avoid confusing new users.
Just wondering whether that is a thing that could be added, since the conversion from dollar amounts to Bitcoin depends on the order time, it'd be great to have this added to the metadata. Does woocommerce allow this kind of associated data storage?
I am getting following error while doing payment for generated invoice by lightning charge api.
"This is not a valid bitcoin address".
We are doing payment using this app : Eclair Wallet Testnet
https://play.google.com/store/apps/details?id=fr.acinq.eclair.wallet&hl=en
Also here we have attached generated invoice address by plugin.
Can you help us to figure out what we are doing wrong ? Also we have set up c - lightning and lightning charge on our local server.
Thanks.
Is this thing working?
Latelly with new versions of Woo, I'm unable to receive payments. It says "failed saving invoice".
@weex grabbed me on IRC; he paid but the UI was still spinning.
I checked the server, it has indeed been paid:
lightning-cli --lightning-dir ~/.lightning/mainnet/ listinvoice | grep c65791aab5ba8aed9b85b188bd6b7d5cb70238026f54d2d1a70c797ad8d9465e
{ "label" : "gjxvasjiIwZb1H13wXgG7", "payment_hash" : "c65791aab5ba8aed9b85b188bd6b7d5cb70238026f54d2d1a70c797ad8d9465e", "msatoshi" : 212434387, "complete" : true, "pay_index" : 3, "msatoshi_received" : 212434387, "expiry_time" : 1516159063 },
In case it was just that the gui was stuck I told him to reload, but no joy:
https://twitter.com/weex/status/953488332649984000
He also hasn't received the conf. mail, so I think something is stuck?
Would be interesting to integrate Lighting for WHMCS
Would be happy to test on a micropayment product like vpn.ht
Let me know
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.