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
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.
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.
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, runTurtleCoind
andturtle-service
. You can skip runningTurtleCoind
by using a remote node withturtle-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