Paymment module for 2CheckOut GitLab
This is a wordPress Plugin for woocommerce that allow to do payments with credit card through 2checkout API without take the user to additional pages
by Jose Sabino · gitlab.com/jasabino/2checkoutwpplugin · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://gitlab.com/jasabino/2checkoutwpplugin/-/archive/master/2checkoutwpplugin-master.zipReadme
WordPress Plugin for 2checkout paymnets in woocomerce
This is a wordPress Plugin for woocommerce that allow to do payments with credit card through 2checkout API without take the user to additional pages
For more information please check the documentation on:
Getting Started
These instructions will get you a copy of the project up and run on your local machine for development and testing purposes.
- Download a GIT client as TortoiseGIT
- Clone the repository from SSH or HTTPS
Prerequisites
You need these programs in order to run this project:
- XAMPP (or any PHP environment) (Download)
- Install WordPress (Download)
- Install Woocommerce (Download)
Installing the Plugin
- Copy the root folder of the project inside of the folder
wp-content/pluginsof your installation of wordpress - Go to administration panel of WordPress and click on Plugins
- Looking for the plugin
Paymment module for 2CheckOutand click on install and activate
Note: by the default this project is using an sample credientials of 2checkout, please create an account and change the credentials
For change the credentials of 2checkout, please follow the next instructions:
- Create an acount in (Sandbox of 2checkout)
- Inside of Plugins, click on
Settingslink of this plugin - Copy values of
Publishable Key,Private KeyandAccount Number(Seller Id) from the Sandbox of 2CheckOut - Save
Project Structure
It contains two files and one lib folder:
-
2checkout.php
Is the plugin, it contains a class that extends of WC_Payment_Gateway and override all methods necessaries for call the API of 2checkout and doing the payment
-
jquery.payment.php
this is the jquery library for changing the validations in the form of paymments