# WooCommerce

WooCommerce is a customizable, open-source eCommerce platform built on WordPress. You can accept payments on your WooCommerce website with XanPay.

Download XanPay WooCommerce plugin

# Capabilities

  • Use XanPay payment gateway to accept payments.
  • Redirect users to XanPay checkout page, or display the XanPay widget on the Thank You page.
  • Customize payment methods available for customers

# Installation

  • Download our plugin.
  • Upload the plugin into Wordpress in one of the following two ways:
    1. Use the wp-admin interface to upload the zip file.
    2. Create directory xanpay-wc-widget in wp-app/wp-content/plugins. Unzip contents of the archive into xanpay-wc-widget directory.
  • Activate XanPay plugin in the WordPress admin dashboard (PluginsInstalled plugins).

# Configuration

  • Go to WooCommerce ⟶ Settings.
  • Switch to the Payments tab and activate XanPay payment gateway.
  • Go to XanPay Payment settings and add production and test api keys that can be generated in your XanPay Dashboard.
  • Optional. Specify payment methods available for customers.
    • Specify payment methods and other settings in your dashboard and get generated link - https://dashboard.xanpay.com/link-generator. Then copy encoded payment methods (&paymentMethods={encodedPart}). Example: paymentMethods=eyJTRyI6WyJwYXlub3ciXSwiSEsiOlsiZnBzIl0sIk1ZIjpbImR1aXQtbm93Il19 (copy bold part) and insert it in "Payment methods widget restriction" field in WooCommerce plugin settings.
  • Optional. Specify payment methods that are displayed in the checkout (1-5 methods).
    • Generate a methods string (described above) and insert it into "Payment methods displayed in checkout" field in WooCommerce plugin settings.
  • Optional. Configure Redirect URL.
    Customers will be able to return to the specified URL after they complete their payment.
  • Optional. Configure Notify URL.
    A POST request containing the order ID signed with your certificate's private key will be sent to the provided URL.
    Your certificate's public key can be used to ensure the authenticity of the request.
    Important: a certificate has to be generated in XanPay dashboard for this functionality to work.
  • Note: Currency can be configured in general WooCommerce settings tab

# Changelog

# 1.1.0

  • Customer information (email and phone) are prefilled in the widget after redirect/injection.

# 1.2.1

  • Added an option to manually specify 1-5 methods to display their icons in checkout
  • Added description to checkout
  • Description can be modified in settings

# 1.2.2

  • Fixed some api calls

# 1.2.3

  • Moved redirection mode to backend to support custom thank you pages