Search projects, hackathons, sponsors and tech

    ← All projects

    GhoWoo

    allow merchants using woocommerce platform to use GHO as thier payment solutions

    Demo

    About

    ![screenshot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6AS1w-0gK7Z7-ofJuBJLonln8tCA9Cz138FlIrJ0wBPW4ny-q2JDiuEhSrX7F1d6LSPlkwyh9r8F445E_9w7KUCWcb7nl2sSKDllWsEOIHWqLQkVLHFOBm8Qwe-31Se-rohH4od2j_4ce45PL7momDpwA4OK748zs8ZA234enbxp0vIu5rFQYlzogw4A/s1024/ghowoo-Logo.png) GhoWoo Seamlessly Integrate GHO Payments into Your WooCommerce Store ![screenshot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1K9caKt_6jB-h0cUq_CaeF0JZkkOehdteSRFFYiawUPHiuyBFGf0HJeobVLd-oL4vQchx013yS_w9T4Poh8_LN5t2ghR53jrK5pDZR7vjwP2TF2hUChJse1gPIvdtZ29PbqxYTpWxOvPFwaxd4dojhvs8QFJDSjjLOPIKxwVFT57Li0kY6TnDjY5-Ib0/s1000/Untitled-1-Recovered.png) ## Introduction **GhoWoo**: is a groundbreaking plugin designed to revolutionize the way online stores accept payments. At its core, GhoWoo facilitates the integration of cryptocurrency payments, specifically through the GHO token, directly into your WooCommerce store. This innovative solution offers a seamless, efficient, and secure method for e-commerce businesses to diversify their payment options, catering to a growing market of crypto-enthusiastic customers. ## Key Features: 1. **Accept Payments in GHO Token:** Seamless integration with WooCommerce for accepting GHO tokens 2. **Peer-to-Peer Transactions:** Direct and secure P2P payment processing without intermediaries ## Local deployment 1. The easiest way to start a wordpress website is by using [localwp](https://localwp.com/) , once installed, start a new wordpress site , and make sure woocommerce is installed on the side . ## Installing the plugin 2. Download the plugin from the [latest releases](https://github.com/malawadd/gho-woo/releases/tag/v0.1.0-LGHO-Hack) 3. Install the plugin in Wordpress ![screenshot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpQy3Z46216-p6JzWo0F4GX_wai-AHaIiwenJZI6buHp2jI9565eaY6zzZipLxayHDshcR5_7rdIPkexbVmq1HCZ4BSPLWJT9dg59ZveS576mHzOwR9NrRmLHN9Jz8T0UiWvhqPapYLBAGKM-_01eHRBqPVCi4HMChpVN2OtbdjttI31TruatKkpmb8tw/s640/install%20gif%20(2).gif) ## How To setup 1. Activate GhoWoo as a payment gateway from woocommerce ![screenshot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibIcZiskbY4mbNY23sqQZur2gL4YucvZpjoSgPJ-UOgZTVEJqX7ZqQdT1W3b87qFBdBq-ZpWbMZ0Xnlv-92q23cC8ZztAYqHEZ2lynBz5pwNxCm7y8wMv4S_oeHX9xa58lKLDAN3Ddog3879bDrZUTmT6NfPU3X7xXsD9_QsFknsU2Jlib8WKZBLex91Q/s640/0117%20(1).gi) 2. From GhoWoo setting choose any wallet address to recive payment on, and the netwrok you would like to accept payment on. ![screenshot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQFPTGeGjA5P59PJZc_VE22Ip31yvPivmAf3TjAnbmsXJNMSvf6awgj1UnzOeSHA8lXNCMfLkYFZzxEnj-2XmDpTTLHLJaeikXLjzm7wUM0q1JwUMEU6Yho4zDEZVBqqHdmyrI-6MDIkJVIxKCDy76aPb09dEpbHHfK7lTaylwbd7kKC6F7xs0Gv2g4QU/s640/wallet.gif) ## How the payment works customers simply choose to pay with metamsk, and thats it . ![screenshot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicd7i17Pe1rcEb0OdGsdEE-omjDuqaKCMUl0ao5PFq9QDew1oXjZ8EIg7WI6G5tqxs8T7lgQT9BSL0u85tCownd1W0jijSDFa-irauNeD2Rx2KUJCzkFr5ouX290cGxPrdwuIV3WAwdY9QPnliS8yu-upMOXAI1fqOH3v3LkpkFZLHqfi9qiRiFKv0Eqs/s640/client%20journy%20.gif) ## License MIT

    How it's made

    # GhoWoo Plugin Development Overview ## WordPress Plugin Development: ### Plugin Foundation: - **Plugin Identification:** GhoWoo, a plugin for MetaMask payments in WooCommerce, enabling Ethereum (ETH) and GHO token transactions. - **Initialization:** Uses a singleton pattern for the `metamask_pay` class for efficient global state management. ### Integration with WooCommerce: - **Payment Gateway:** A custom payment gateway (`WC_Gateway`) integrated into WooCommerce for handling cryptocurrency transactions. - **Admin Interface:** Admin settings page under WooCommerce for configuration and user-friendly admin-specific scripts and styles. ### Database and Installation: - **Database Operations:** Custom database class (`database`) for managing transaction data. - **Activation/Deactivation Hooks:** Hooks set up for tasks upon plugin activation or deactivation, including database setup and option management. ### Localization and Internationalization: - Prepared for internationalization, supporting multiple languages. ## REST API Integration: ### Custom API Endpoints: - Developed REST API endpoints like `verify-transaction`, `save-transaction` for handling cryptocurrency transactions. ### Security and Validation: - Implemented nonce verification and data sanitation for API request security and integrity. ### WooCommerce Interaction: - Used AJAX for server-side communication to update the order status in WooCommerce based on the blockchain transaction outcomes. Implemented back-end WordPress functions to securely handle AJAX requests, verify transactions, and update order statuses accordingly. ## Blockchain Integration: ### MetaMask and Ethereum Integration: - **MetaMask Wallet Connection:** Integration with MetaMask for Ethereum wallet connections and transaction executions. - **Ethereum Network Transactions:** Utilized Ethereum's network and APIs for handling payments in ETH and other tokens. ### JavaScript for Blockchain Interactions: - JavaScript used for MetaMask extension interactions for wallet connections, account changes, and transaction initiations. ### Transaction Handling and Status Updates: - JavaScript functions developed for managing transaction processes and real-time user interface updates based on transaction status using jQuery.