Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Lunar Online Payments for ZenCart

License

Notifications You must be signed in to change notification settings

lunar/payments-plugin-zen-cart

Repository files navigation

Lunar Online Payments for ZenCart

The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement.

Supported Zen Cart versions

The plugin has been tested with most versions of Zen Cart at every iteration. We recommend using the latest version of Zen Cart, but if that is not possible for some reason, test the plugin with your Zen Cart version and it would probably function properly.

Installation

*NOTE: It requires PHP version >=7.4

After you have your Zen Cart setup, follow these simple steps:

  1. Signup at lunar.app (it’s free)
  2. Create an account
  3. Create an app key for your Zen Cart website
  4. Upload the files in the upload folder to your root zen cart installation.
  5. Activate the plugin through the 'Modules/Payment' screen in Zen Cart.
  6. Insert the app key and your public key in the settings for the Lunar payment plugin

Updating settings

Under the Zen Cart Lunar settings, you can:

  • Update the payment method text in the payment gateways list
  • Update the payment method description in the payment gateways list
  • Add app & public keys and configuration ID for the MobilePay method
  • Set the status the order should get into when you do a capture/refund/void
  • Change the capture type (Instant or Delayed via the transaction tool)

How to

The following actions are available by clicking on the Click for Additional Payment Handling Options link in order details windows.

  1. Capture
  • In Instant mode, the orders are captured automatically
  • In delayed mode you can capture an order using the in order transaction table actions. In that table you will see Capture when this is available
  1. Refund
  • To refund an order you can use the in order transaction table actions, this is only available for orders that have been captured. Click the Refund button and follow the instructions
  1. Void
  • To void an order you can use the in order transaction table actions. You can only do this if the order is not captured; if you have captured already use the refund.

Available features

  1. Capture
    • Zencart admin panel: full capture
    • Lunar admin panel: full/partial capture
  2. Refund
    • Zencart admin panel: full/partial refund
    • Lunar admin panel: full/partial refund
  3. Void
    • Zencart admin panel: full void
    • Lunar admin panel: full/partial void

Changelog

2.0.1

  • Fixed check for amount & currency on callback

2.0.0

  • Changed flow to hosted checkout & added MobilePay method

1.0.0

  • Initial commit