User avatar
tungfa
Gold Bitcoiner
Gold Bitcoiner
Posts: 1825
Joined: Mon Oct 05, 2015 5:09 am

Donate BTC of your choice to 19j972c9zC2Gg7VGdSt6ujkCqvo2EBtj63

Contact: Website Facebook Twitter Telegram

Testnet Release: Dash Payment Processor / WooCommerce

Tue Jan 17, 2017 2:17 am

https://www.dash.org/forum/threads/test ... rce.12723/

Image

On behalf of the Evolution Backend team I'm pleased to announce the 'testnet' release of Dash Payment Processor. This system is meant to be operated by a merchant to allow for the usage of Dash as a payment option without third parties being involved.

The quickest way to get a feel for how this system works is to visit http://payment-processor-testing.slayer.work and place an "order". You'll notice that after the submit button is pressed a response will be provided back containing payment information. If the requested payment is sent you'll see a "Payment Callback" occur. It's also worth mentioning that this system fully supports InstantSend.

Included in this release is a WooCommerce Plugin. This plugin was created to act as a "Proof of Concept" for the system as a whole. It enables WooCommerce to use the Dash Payment Processor as it would any other payment method. Plugins and extensions for other e-commerce platforms can be developed in the same way; these libraries facilitate the checkout process and also allow for block confirmations to occur before the sale is finalized. A demonstration of this plugin is available at http://store.slayer.work.

Dash Payment Processor uses a BIP32 HD Wallet Seed or Electrum Wallet Seed as the basis for Payment Address generation. More information on this and other mechanics of the API is available in the Official Project Wiki.


Resources:
Dash Payment Processor
Payment Processor Testing
Dash WooCommerce Plugin
InstantSend Detection
Dash Store

Official Project Wiki:
Dash Payment Processor Overview
Dash Checkout
Dash Payment Processor
Payment Receiver
Payment Callback
Installation & Configuration

Technical Details:

Interested in setting up your own Payment Processor? There's a bit of setup involved, if you have any questions please contact me through PM and I'll try to give you a hand as quickly as I can.

Prerequisites (Ubuntu 14.04 or 16.04 recommended):

1. Node Version Manager: https://github.com/creationix/nvm#install-script

2. LAMP Stack: https://www.digitalocean.com/commun...x ... untu-14-04

3. Wordpress: https://www.digitalocean.com/community/ ... untu-14-04

4. WooCommerce: https://wordpress.org/plugins/woocommerce/installation


Part 1: Install Dash Payment Processor

nvm install v4.0.0

(close terminal window and reopen for nvm to take effect - important!)

npm install -g bitcore-node-dash

bitcore-node-dash create mynode -d ~/.bitcore/data --testnet

cd mynode

bitcore-node-dash install insight-api-dash

bitcore-node-dash install dash-payment-processor

cd node_modules/dash-payment-processor/config

nano AppConfig.js // configure wallet seed and worldcoin api key

cp DBConfig-template.js DBConfig.js

nano DBConfig.js // add mysql database user/pass

cd ../resources

mysql -u<mysql username> -p < mysql-schema.sql

cd ../../../

bitcore-node-dash start

At this point, you should have a full Bitcore node up and running. This node will sync the entire Dash Blockchain and provide a local Insight API that the Payment Processor can use to detect and verify transactions. At this point we can proceed with installing the WooCommerce plugin.


Part 2: Install the WooCommerce Plugin

1. Download Dash-Woocommerce-Plugin.zip from https://github.com/snogcel/dash-woocomm ... plugin.zip.

2. From the WordPress Admin interface, click plugins then click "Add New".

3. At the top of the screen find the "Upload Plugin" button and choose the zip file download previously.

4. Click the "Activate Plugin" button, once the plugin has been activated you'll find it included in the listing of Installed Plugins.

5. From "Installed Plugins", locate "Dashpay - WooCommerce Gateway" and click on Settings.

6. Select "DASH Checkout" from the list of available payment methods.

7. Check the "Enable this payment gateway" checkbox.

8. Configure the "Payment Service API" and "Insight API" option to point to your server.

Return to “Dash”

Who is online

Users browsing this forum: No registered users and 1 guest