README.md in ruby-ecomm-client-1.1.0 vs README.md in ruby-ecomm-client-1.7.0
- old
+ new
@@ -17,9 +17,19 @@
$ gem install ruby-ecomm-client
## Usage
```ruby
+RubyEcommClient.configure do |config|
+ config.requesting_app = '{YOUR_APP_NAME}'
+ #NOTE: An SSL Client Certificate must be registered and specified when using the purchase service
+ #NOTE: Best to read them once as root, then downgrade
+ cert_content = File.read('{YOUR_CERT_FILE_PATH}')
+ cert_key_content = File.read('{YOUR_CERT_KEY_FILE_PATH}')
+ config.ssl_cert_content = cert_content
+ config.ssl_cert_key_content = cert_key_content
+end
+
shopper_id = '???'
resource_type = 'outright'
resource_id = '???' #aka account_uid
client = RubyEcommClient::Client.new(shopper_id, resource_type, resource_id)