Skip to content

Instantly share code, notes, and snippets.

View VantivSDK's full-sized avatar
🎯
Focusing

Worldpay from FIS - eCommerce VantivSDK

🎯
Focusing
View GitHub Profile
@VantivSDK
VantivSDK / hotHotConfigurations
Created January 9, 2019 19:35
Configuration parameters for Hot-Hot feature
| Name | Example | Description |
| ----------------------- | --------| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| multiSite | false | Specifies if multi-site feature is enabled. Contact your RM to determine if you are eligible. Will cause transaction failures if set to true without Worldpay approval. |
| printMultiSiteDebug | false | If true and multiSite is true, will print debug messages on multi-site handling |
| multiSiteErrorThreshold | 5 | If multiSite is true, specifies the number of consecutive communication errors before switches to alternate site
@VantivSDK
VantivSDK / Ruby Retrieve ARN Activity Example
Created November 15, 2018 21:29
Ruby Retrieve ARN Activity Example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargebacks_by_arn(arn: "1111111111")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve Card Activity Example
Created November 15, 2018 21:28
Ruby Retrieve Card Activity Example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargebacks_by_card_number(card_number: "1111000011110000", expiration_date: "0118")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve Case Activity example
Created November 15, 2018 21:28
Ruby Retrieve Case Activity example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargeback_by_case_id(case_id: "1333078000")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve Actionable Chargebacks example
Created November 15, 2018 21:28
Ruby Retrieve Actionable Chargebacks example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_actionable_chargebacks(actionable: "true")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Retrieve All chargebacks for Activity Date example
Created November 15, 2018 21:28
Ruby Retrieve All chargebacks for Activity Date example
require 'CnpChargeback'
include CnpChargeback
response= ChargebackRetrieval.new.get_chargebacks_by_date(activity_date: "2018-01-01")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Respond to a Retrieval Example
Created November 15, 2018 21:27
Ruby Respond to a Retrieval Example
require 'CnpChargeback'
include CnpChargeback
response = ChargebackUpdate.new.respond_to_retrieval_request(case_id: 10000, note: "Test note")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Represent Example
Created November 15, 2018 21:27
Ruby Represent Example
require 'CnpChargeback'
include CnpChargeback
response = ChargebackUpdate.new.represent_case(case_id: 10000, note: "Test note", representment_amount: 12000)
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Assume Liability Example
Created November 15, 2018 21:27
Ruby Assume Liability Example
require 'CnpChargeback'
include CnpChargeback
response = ChargebackUpdate.new.assume_liability(case_id: 10000, note: "Test note")
puts response.transactionId
@VantivSDK
VantivSDK / Ruby Add Note to Case Example
Created November 15, 2018 21:26
Ruby Add Note to Case Example
require 'CnpChargeback'
include CnpChargeback
response = ChargebackUpdate.new.add_note_to_case(case_id: 10000, note: "Test note")
puts response.transactionId