1.3.1 • Published 11 months ago

medusa-plugin-culqi-card v1.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

medusa-plugin-culqi-card

Medusa plugin for processing credit card payments using Culqi.

Environment Variables

NOTE: Options are provided as environment variables.

Environment VariableDescriptionRequiredExample
CULQI_SECRET_KEYCulqi Secret KeyYes
CULQI_CAPTUREWhether or not to capture the payment in the same request as payment authorizationfalse
CULQI_ORDER_AUTO_CAPTUREWhether or not to capture the payment immediately after the order has been placedtrue
CULQI_ORDER_AUTO_CAPTURE_DELAY_MSDelay in milliseconds to capture the payment after the order has been placedtrue
CULQI_DEV_EMAILEmail to use for test environment when processing payment
CULQI_APP_ENVApp Environment. It will be appended to customer's email address to avoid conflicts in LLE environments using the same Culqi Secret Keystaging
CULQI_LOG_CULQI_REQUESTSWhether or not to log requests to Culqitrue

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
1.2.0

12 months ago

1.2.3

11 months ago

1.3.1

11 months ago

1.2.2

12 months ago

1.3.0

11 months ago

1.2.1

12 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago