Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.76 KB

SETUP.md

File metadata and controls

44 lines (36 loc) · 1.76 KB

Setting up and Configuring the Vantiv eCommerce Chargeback SDK

Running the built in configuration file generator

The Ruby Chargeback SDK ships with a built in program which can be used to generate your specific configuration.

This program runs as follows:

>Setup.rb 
Welcome to Vantiv eCommerce Ruby_Chargeback_SDK
please input your user name:
test_user
please input your password:
test_password
Please choose Vantiv eCommerce url from the following list (example: 'prelive') or directly input another URL:
sandbox => https://www.testvantivcnp.com/services/chargebacks
prelive => https://payments.vantivprelive.com/services/chargebacks
sandbox
Please input the proxy address, if no proxy hit enter key: 

Please input the proxy port, if no proxy hit enter key: 

The Vantiv eCommerce configuration file has been generated, the file is located at: /<your-home-directory>/.cnp_chargeback_config.yml 

Modifying your configuration

You may change the configuration values at anytime by running Setup.rb again, or simpy opening the configuration file directly in the editor of your choice and changing the appropriate fields.

Changing the location of the Cnp configuration file:

NOTICE you can set the environment variable $CNP_CB_CONFIG_DIR to locate your configuration file in a location other than the $HOME Directory, the the file will reside in $CNP_CB_CONFIG_DIR/.cnp_chargeback_config.yml

Sample configuration file contents

user: test_user
password: test_password
url: https://www.testvantivcnp.com/services/chargebacks
proxy_addr: yourproxyserver
proxy_port: 8080