import IntegrationApiKeys from '../../common/integration_api_keys' ; import IntegrationCommerceCodes from '../../common/integration_commerce_codes' ; import Environment from '../common/environment' ; import Options from '../../common/options' ; import _Transaction from './transaction' ; module WebpayPlusModal { /**
     * Contains methods used to create, commit, refund and capture Transactions.
     */ export const Transaction = _Transaction ; /**
     * Contains currently configured Commerce Code, Api Key and Environment
     */ export let options ; returns export const getDefaultOptions = ( ) => { return WebpayPlusModal . options ; } ; param _commerceCode param _apiKey export const configureForProduction = ( _commerceCode , _apiKey ) => { WebpayPlusModal . options = new Options ( _commerceCode , _apiKey , Environment . Production ) ; } ; param _commerceCode param _apiKey export const configureForIntegration = ( _commerceCode , _apiKey ) => { WebpayPlusModal . options = new Options ( _commerceCode , _apiKey , Environment . Integration ) ; } ; /**
     * This method configures the module to use Webpay Plus in the Integration environment.
     */ export const configureWebpayPlusForTesting = ( ) => { WebpayPlusModal . options = new Options ( IntegrationCommerceCodes . WEBPAY_PLUS_MODAL , IntegrationApiKeys . WEBPAY , Environment . Integration ) ; } ; } export default WebpayPlusModal ;