medusa-plugin-culqi-card

1.3.1 • Public • Published

medusa-plugin-culqi-card

Medusa plugin for processing credit card payments using Culqi.

Environment Variables

NOTE: Options are provided as environment variables.

Environment Variable Description Required Example
CULQI_SECRET_KEY Culqi Secret Key Yes
CULQI_CAPTURE Whether or not to capture the payment in the same request as payment authorization false
CULQI_ORDER_AUTO_CAPTURE Whether or not to capture the payment immediately after the order has been placed true
CULQI_ORDER_AUTO_CAPTURE_DELAY_MS Delay in milliseconds to capture the payment after the order has been placed true
CULQI_DEV_EMAIL Email to use for test environment when processing payment
CULQI_APP_ENV App Environment. It will be appended to customer's email address to avoid conflicts in LLE environments using the same Culqi Secret Key staging
CULQI_LOG_CULQI_REQUESTS Whether or not to log requests to Culqi true

Usage

const plugins = [
  // ...
  'medusa-plugin-culqi-card',
]

Culqi Request Logging

When process.env.CULQI_LOG_CULQI_REQUESTS is set to true, the plugin will log all requests to Culqi to the culqi_log table. This is useful for debugging purposes.

If Culqi requests logging is enabled, run migrations to create the culqi_log table:

yarn build
medusa migrations run

Package Sidebar

Install

npm i medusa-plugin-culqi-card

Weekly Downloads

0

Version

1.3.1

License

MIT

Unpacked Size

144 kB

Total Files

22

Last publish

Collaborators

  • lparedesl