Hello Bitcoin via BTCPayServer

I just created an add-on for [url=https://btcpayserver.org/]BTCPayServer[/url]. It's a payment system for self-hosted Bitcoin payment.

I view it as a great alternative to having to use third-party systems like Coinbase or Bitpay to operate a business that accepts crytpocurrencies.

I view Litecart very highly and think this addition could highlight a much simpler tool than Wordpress/Woocommerce.

That's a really interesting way to word that question. Are you having any issues with it?

Thank you for your reply. No issues. I was just wondering if it is still working or maintained.

I will try soon and let you know my findings. Sorry for bumping, I was just excited that this add-on exists.

Please forgive my naive question and have a great day. Thank you.

rob

Is the app still working i got the server setup but can't get it to work..

Maby a clean walktrue how to make it work ?

@rob have you configured the module with your store ID, URL and access token?

rob

Got all setup but sems not to work the blockchain is sycned i can not find what sould be the right url and the token Site id was a easy one but the rest i am stil puzzeling. I would make sense it is under acces tokens.  

So my quest is 
[ol]
[li]Find the right btc pay server url [/li]
[li]And acces token [/li]
[/ol]
Been looking at few youtube but there is not much out there for litecart

The BTCPayServer URL should be your public facing URL for your specific BTCPayServer instance.

You are not "all setup" if you have not configured an access token or set the URL so that litecart can talk to BTCPayServer.

rob

Been spending now 3 hours. Does anyone have this working? on thier site?

.
@rob, I’ve asked you if you know your public BTCPayServer URL and access token. You have not confirmed that yet. I’m not sure what you’re spending 3 hours on, I simply need you to confirm that you do have those two pieces of information to plug in to your configuration.

rob

Thank you i have a public url looks like this btcpay-okacg-u****.vm.elestio.app
and i have this: Server initiated pairing code: zPCgiqJ but it doesn't show in the Store Settings/Access Tokens it says: No access tokens yet.

There’s no need to pair with the server, if you go to the admin panel and get a user based access token it should work with any of your stores.

rob

Thank you mishochu,

i get this a Invalid response from remote machine over and over again.

rob

I have all in order i emailed  with support@elest.io they helped to set it up but seems to be the module. 

see screenshots:

rob

Been reading could be also the php settings The PDO, curl, gd, intl, json, and mbstring PHP extensions are available

You should be looking in your logs, specifically a log file named like this http_request_last-<your btcpayserver url host name>.log.

In it you will see what type of requests and responses, if any, you are making and getting from BTCPayServer.

An example:



GET /api/v1/stores/<store-id>/invoices/<invoice-id> HTTP/1.1
Host: <your btcpayserver url>
Authorization: token <your token> 
X-BTCPAYSERVER-CLIENT-USER-AGENT: {"lang":"php","publisher":"litecart","application":{"url":"https://litecart.net/","version":"1.0","name":"BTCPay Server for LiteCart"}}
BTCPayServer-Version: 1.6.0
Content-Type: application/json
User-Agent: LiteCart/2.5.4
Content-Length: 0
Connection: Close

## [2023-08-31 12:52:07] Response — 2188 bytes transferred in 0.05 s ###

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 31 Aug 2023 18:52:07 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1320
Connection: close
Set-Cookie: <your cookie value>
Content-Security-Policy: script-src 'self'
Referrer-Policy: same-origin
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Content-Security-Policy: default-src https: data: 'unsafe-inline' 'unsafe-eval'
Referrer-Policy: strict-origin

{"id":"<your invoice id>","storeId":"<your store id>","amount":"7.65","checkoutLink":"<your checkout link>","status":"Settled","additionalStatus":"None","monitoringExpiration":1693599461,"expirationTime":1693513061,"createdTime":1693507661,"availableStatusesForManualMarking":[],"archived":false,"type":"Standard","currency":"USD","metadata":{"orderId":18,"buyerZip":"84317","orderUrl":"<your litecart url>/admin/?doc=edit_order","buyerCity":"Huntsville","buyerName":"Customer Name","buyerEmail":"<customer email>","buyerPhone":"<customer phone>","buyerState":"UT","line_items":[{"name":"Lotion Bar","amount":765,"images":["<your product image>.jpg"],"currency":"USD","quantity":1}],"buyerCountry":"US","buyerAddress1":"6057 Snowbasin Rd","buyerAddress2":""},"checkout":{"speedPolicy":"HighSpeed","paymentMethods":["BTC","BTC-LNURLPAY","BTC-LightningNetwork"],"defaultPaymentMethod":"BCH","expirationMinutes":90,"monitoringMinutes":1440,"paymentTolerance":0.0,"redirectURL":"<your litecart url>/index.php/order_process","redirectAutomatically":true,"requiresRefundEmail":null,"defaultLanguage":null,"checkoutType":null,"lazyPaymentMethods":null},"receipt":{"enabled":null,"showQR":null,"showPayments":null}}```
Voir le code sur GitHub