← Back to home

GhoWoo

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

Screenshots

GhoWoo screenshot 1
GhoWoo screenshot 2
GhoWoo screenshot 3
GhoWoo screenshot 4
GhoWoo screenshot 5

Problem Statement

GhoWooSeamlessly Integrate GHO Payments into Your WooCommerce StoreIntroductionGhoWoo: 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:Accept Payments in GHO Token:Seamless integration with WooCommerce for accepting GHO tokensPeer-to-Peer Transactions:Direct and secure P2P payment processing without intermediariesLocal deploymentThe easiest way to start a wordpress website is by usinglocalwp, once installed, start a new wordpress site , and make sure woocommerce is installed on the side .Installing the pluginDownload the plugin from thelatest releasesInstall the plugin in WordpressHow To setupActivate GhoWoo as a payment gateway from woocommerceFrom GhoWoo setting choose any wallet address to recive payment on, and the netwrok you would like to accept payment on.How the payment workscustomers simply choose to pay with metamsk, and thats it .LicenseMIT

Solution

GhoWoo Plugin Development OverviewWordPress 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 themetamask_payclass 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 likeverify-transaction,save-transactionfor 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.

Hackathon

LFGHO

2024

Prizes

  • 🏆

    Integration Prize

    Aave

  • 🏆

    Pool Prize

    Family

Contributors