Skip to content

Accepts payments with the Thawani Pay v2 Gateway for WooCommerce

License

Notifications You must be signed in to change notification settings

malnafei/thawani-pay-woocommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thawani Pay v2 for WooCommerce

Accepts payments with the Thawani Pay v2 Gateway for WooCommerce

This is the unofficial Thawani Pay v2 payment gateway plugin for WooCommerce. Allows you to accept credit cards, debit cards payments with the WooCommerce plugin. It uses a seamless integration, allowing the customer to pay on your website quickly. Thawani Checkout API Documentation: Thawani API Documentation

Note: Thawani Pay is currently available for businesses with account in Thawani company.

For detailed information and signup please visit: Thawani Pay

Requirements

  • Requires at least: woocommerce >= 4.0.0, WordPress >= 4.0.0
  • Tested up to: 5.6.2
  • Requires PHP >= 5.6
  • WC requires at least: 4.0.0
  • WC tested up to: 5.0.0

Features

  • Compatible with Thawani Pay version 2
  • Easy configuration in WooCommerce - only API secret key and Publishable key need to be copied from Thawani Merchant Portal
  • Easy customization - payment method title, description, environment: UAT/Production, cancel url, success url, client reference id Prefix and more can be changed easily
  • Compatible with UAT and production API.
  • Developer logs feature: receive new emails when something happens with the payment API
  • WC tested up to 5.0.0

To-Do

  • Support UAT api
  • Support PRODUCTION api
  • Create new payment
  • Success and Cancel callbacks
  • Payment card tokenization - Saved cards
  • Refund - intgrate Thawani refund API with woocomerce refund feature
  • Transaction details - View payment transaction details on order edit.
  • Woocommerce tax
  • Webhook

Screenshots

Screen Shot 2021-03-10 at 11 18 05 AM

Installation

  1. Upload thawani-pay-woocommerce folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to WooCommerce - Settings - Payments - Thawani Pay - setup
  4. Thawani payment gateway will be available in "Checkout" page.

Test with UAT

You can test if the payment works correctly by enableing the UAT mode Screen Shot 2021-03-10 at 11 36 51 AM

UAT Secret Key: rRQ26GcsZzoEhbrP2HZvLYDbn9C9et

UAT Publishable Key: HGvTMLDssJghr9tlN9gr4DVYt0qyBy

You can use the test cards provided by Thawani Team:

Success Card

Decline Card

Changelog

1.2.0

  • Arabic products supported now.

1.1.0

  • fix product name must be a string with a maximum length of 40 issue.
  • Add billing phone to request metadata.

1.0.0

  • first public version

License

gpl-3.0 License

Contributing

All feedback/bug reports/pull requests are welcome.