The plugin has been tested with most versions of Drupal Commerce at every iteration. We recommend using the latest version of Drupal Commerce, but if that is not possible for some reason, test the plugin with your Drupal Commerce version and it would probably function properly.
Once you have installed Drupal Commerce on your Drupal setup, follow these simple steps:
- Signup at lunar.app (it’s free)
- Create an account
- Create an keys for your Drupal website
- Upload the contents of the
zip
file from latest release (https://github.com/lunar/payments-plugin-drupal-commerce-8.x/releases) to the modules directory and enable it on theadmin/modules
page OR runcomposer require drupal/commerce_lunar
- If the zip file is used, it is required to run
compose require lunar/payments-api-sdk
before installing the plugin - Add the payment gateway from
admin/commerce/config/payment-gateways
and select one of the Lunar methods displayed under thePlugin
section - Set capture mode to either Delayed or Instant under
Capture mode
section. `
Under the Lunar payment method settings, you can:
- Update the payment method text in the payment gateways list
- Update the payment method description in the payment gateways list
- Update the title that shows up in the checkout flow
- Add app & public keys and other required data
- Change the capture mode (Instant/Delayed)
- Capture
- In "Instant" mode, the orders are captured automatically
- In "Delayed" mode you can capture an order by using the Payments tab from an order. If available the capture operation will show up.
- Refund
- You can refund an order by using the Payment tab from an order. If available the refund operation will show up.
- Void
- You can void an order by using the Payment operations from an order. If available the void operation will show up.
- Capture
- Drupal admin panel: full/partial capture
- Lunar admin panel: full/partial capture
- Refund
- Drupal admin panel: full/partial refund
- Lunar admin panel: full/partial refund
- Void
- Drupal admin panel: full void
- Lunar admin panel: full/partial void