Skip to content

Add Environment Selection for Development and Production Modes

Latest

Choose a tag to compare

@Rohan29-AN Rohan29-AN released this 25 Oct 13:01

What's New

  • Feature: Introduced an environment selection feature that allows users to specify whether to operate in Development (DEV) or Production (PROD) mode.

Details

  • The constructor of the library now accepts an env parameter. If no value is provided, it defaults to PROD.
  • This addition enhances flexibility, allowing developers to easily switch between development and production environments without modifying the library code.

Usage Example

To initialize the library in development mode:

VanillaPayInternational payment = new VanillaPayInternational(clientId, clientSecret, keySecret, vpiVersion, "DEV");