This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargebacks_by_arn(arn: "1111111111") | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargebacks_by_card_number(card_number: "1111000011110000", expiration_date: "0118") | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargeback_by_case_id(case_id: "1333078000") | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_actionable_chargebacks(actionable: "true") | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response= ChargebackRetrieval.new.get_chargebacks_by_date(activity_date: "2018-01-01") | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response = ChargebackUpdate.new.respond_to_retrieval_request(case_id: 10000, note: "Test note") | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response = ChargebackUpdate.new.represent_case(case_id: 10000, note: "Test note", representment_amount: 12000) | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response = ChargebackUpdate.new.assume_liability(case_id: 10000, note: "Test note") | |
puts response.transactionId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'CnpChargeback' | |
include CnpChargeback | |
response = ChargebackUpdate.new.add_note_to_case(case_id: 10000, note: "Test note") | |
puts response.transactionId |
NewerOlder