/commerce_turtlecoin

TurtleCoin Payment Gateway for Drupal Commerce 2.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

TurtleCoin

Commerce TurtleCoin

Payment Gateway for Drupal Commerce to allow payments with TurtleCoin.

This project is obsolete and unsupported since TurtleCoin is moving towards v2 and also moving to wTRTL in the meantime. TurtleCoin software is EOL and TurtlePay will shut down on Jan 31, 2022, which deprecates both of the payment gateways. Further development is not planned until the TRTL ecosystem has switched to v2.

See https://github.com/turtlecoin/turtlecoin/releases and https://blog.turtlecoin.com/wtrtl-launch/

Issue Handling is done on Drupal.org: Drupal Project Page

What this Modules does

Commerce TurtleCoin is providing two Payment Gateways for paying with TurtleCoin in Drupal Commerce.

The first is an implementation with the Wallet API to generate an integrated address on checkout and track the transaction to void it after a given time or complete it if the payment arrives.

The second payment gateway uses TurtlePay™ to process the payment.

TurtlePay Payment Instructions

You can enter the product prices in Euro or Dollar, an Exchange rate service for Commerce Currency Resolver is included which uses the CryptoCompare API to calculate the TRTL price if necessary.

Installation

The gateway implemented with Wallet API needs a running and connected TurtleCoind and wallet-api service running.

See here: https://github.com/turtlecoin/turtlecoin

For installation and setting up a wallet see here: https://docs.turtlecoin.lol/guides/wallets/using-zedwallet

The instructions from the turtlecoin-woocommerce-gateway are also very useful (Link):

After downloading (or compiling) the TurtleCoin binaries on your server, run TurtleCoind and turtle-service. You can skip running TurtleCoind by using a remote node with turtle-service by adding --daemon-address and the address of a public node.

Note on security: using this option, while the most secure, requires you to run the Turtle-Service program on your server. Best practice for this is to use a view-only wallet since otherwise your server would be running a hot-wallet and a security breach could allow hackers to empty your funds.

This module includes a very basic config file for the TurtleCoin daemon, you can use it via

./TurtleCoind -c path/to/config/TurtleCoind-config.json

You need also to start the wallet-api:

./wallet-api --port 8070 --rpc-password password

The payment gateway needs to be able to open a wallet for accessing the wallet-api. Please specify your wallet along with the damon settings in the setting.php like this:

$settings['turtlecoin_wallet_config'] = [
  "daemonHost" => "127.0.0.1",
  "daemonPort" => 11898,
  "filename" => "mywallet.wallet",
  "password" => "password",
];

Warning: Change the passwords for production.

Donate to support my work: TRTLv211SzUJigmnbqM5mYbv8asQvJEzBBWUdBNw2GSXMpDu3m2Csf63j2dHRSkCbDGMb24a4wTjc82JofqjgTao9zjd7ZZnhA1