Class: ProcessLinkService
- Inherits:
-
Object
- Object
- ProcessLinkService
- Defined in:
- lib/ProcessLinkService.rb
Instance Method Summary (collapse)
-
- (IATSResponse) createCustomerCodeAndProcessACHEFT(createCustomerCodeAndProcessACHEFTV1)
Description This service is for when you want to create a direct debit (ACHEFT) customer code (Recurring is set to false) and to processing an ACHEFT transaction at the same time.
-
- (IATSResponse) createCustomerCodeAndProcessCreditCard(createCustomerCodeAndProcessCreditCardV1)
Description This service is for when you want to create a credit card customer code (Recurring is set to false) and to process a cedit card transaction at the same time.
-
- (IATSResponse) getBatchProcessResultFile(getBatchProcessResultFileV1)
Description This service is for when you want to request the results of a previous batch request.
-
- (ProcessLinkService) initialize(endpoint_url)
constructor
Creates instance for the specified endpoint_url.
-
- (IATSResponse) processACHEFT(processACHEFTV1)
Description This service is used when you want to make a transaction using an existing direct debit account in your system and no customer code is available or required.
-
- (IATSResponse) processACHEFTChargeBatch(processACHEFTChargeBatchV1)
Description This service is for when you wish to process ACHEFT transactions from more than one donor in one request.
-
- (IATSResponse) processACHEFTRefundBatch(processACHEFTRefundBatchV1)
Description This service is for when you wish to refund multiple ACHEFT transactions from more than one donor in one request.
-
- (IATSResponse) processACHEFTRefundWithTransactionId(processACHEFTRefundWithTransactionIdV1)
Description This service is for when you need to refund a specific transaction made using ACHEFT.
-
- (IATSResponse) processACHEFTWithCustomerCode(processACHEFTWithCustomerCodeV1)
Description This service is for when you want to process a single direct debit (ACHEFT) transaction with an existing customer code.
-
- (IATSResponse) processCreditCard(processCreditCardV1)
Description This is when you want to do a once-off credit card transaction without needing a customer code (token) to be used or created.
-
- (IATSResponse) processCreditCardBatch(processCreditCardBatchV1)
Description This service is for when you wish to process multiple credit card transactions (made on multiple credit cards) in one request.
-
- (IATSResponse) processCreditCardRefundWithTransactionId(processCreditCardRefundWithTransactionIdV1)
Description This service is for when you need to refund a specific transaction made on a credit card in your system.
-
- (IATSResponse) processCreditCardWithCustomerCode(processCreditCardWithCustomerCodeV1)
Description This service is for when you want to process a single credit card transaction using an existing credit card customer code.
Constructor Details
- (ProcessLinkService) initialize(endpoint_url)
Creates instance for the specified endpoint_url. If endpoint_url is nil, Creates the instance for NA region.
7 8 9 10 |
# File 'lib/ProcessLinkService.rb', line 7 def initialize(endpoint_url) @service = ProcessLinkSoap.new(endpoint_url) @service.return_response_as_xml = true end |
Instance Method Details
- (IATSResponse) createCustomerCodeAndProcessACHEFT(createCustomerCodeAndProcessACHEFTV1)
Description
This service is for when you want to create a direct debit (ACHEFT) customer code (Recurring is set to false) and to processing an ACHEFT transaction at the same time.
60 61 62 63 64 |
# File 'lib/ProcessLinkService.rb', line 60 def createCustomerCodeAndProcessACHEFT(createCustomerCodeAndProcessACHEFTV1) res = @service.createCustomerCodeAndProcessACHEFT(createCustomerCodeAndProcessACHEFTV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["CreateCustomerCodeAndProcessACHEFTV1Response"]["CreateCustomerCodeAndProcessACHEFTV1Result"]) end |
- (IATSResponse) createCustomerCodeAndProcessCreditCard(createCustomerCodeAndProcessCreditCardV1)
Description
This service is for when you want to create a credit card customer code (Recurring is set to false) and to process a cedit card transaction at the same time.
21 22 23 24 25 |
# File 'lib/ProcessLinkService.rb', line 21 def createCustomerCodeAndProcessCreditCard(createCustomerCodeAndProcessCreditCardV1) res = @service.createCustomerCodeAndProcessCreditCard(createCustomerCodeAndProcessCreditCardV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["CreateCustomerCodeAndProcessCreditCardV1Response"]["CreateCustomerCodeAndProcessCreditCardV1Result"]) end |
- (IATSResponse) getBatchProcessResultFile(getBatchProcessResultFileV1)
Description
This service is for when you want to request the results of a previous batch request.
164 165 166 167 168 |
# File 'lib/ProcessLinkService.rb', line 164 def getBatchProcessResultFile(getBatchProcessResultFileV1) res = @service.getBatchProcessResultFile(getBatchProcessResultFileV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["GetBatchProcessResultFileV1Response"]["GetBatchProcessResultFileV1Result"]) end |
- (IATSResponse) processACHEFT(processACHEFTV1)
Description
This service is used when you want to make a transaction using an existing direct debit account in your system and no customer code is available or required.
86 87 88 89 90 |
# File 'lib/ProcessLinkService.rb', line 86 def processACHEFT(processACHEFTV1) res = @service.processACHEFT(ProcessACHEFTV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessACHEFTV1Response"]["ProcessACHEFTV1Result"]) end |
- (IATSResponse) processACHEFTChargeBatch(processACHEFTChargeBatchV1)
Description
This service is for when you wish to process ACHEFT transactions from more than one donor in one request.
138 139 140 141 142 |
# File 'lib/ProcessLinkService.rb', line 138 def processACHEFTChargeBatch(processACHEFTChargeBatchV1) res = @service.processACHEFTChargeBatch(processACHEFTChargeBatchV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessACHEFTChargeBatchV1Response"]["ProcessACHEFTChargeBatchV1Result"]) end |
- (IATSResponse) processACHEFTRefundBatch(processACHEFTRefundBatchV1)
Description
This service is for when you wish to refund multiple ACHEFT transactions from more than one donor in one request
151 152 153 154 155 |
# File 'lib/ProcessLinkService.rb', line 151 def processACHEFTRefundBatch(processACHEFTRefundBatchV1) res = @service.processACHEFTRefundBatch(processACHEFTWithCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessACHEFTRefundBatchV1Response"]["ProcessACHEFTRefundBatchV1Result"]) end |
- (IATSResponse) processACHEFTRefundWithTransactionId(processACHEFTRefundWithTransactionIdV1)
Description
This service is for when you need to refund a specific transaction made using ACHEFT.
112 113 114 115 116 |
# File 'lib/ProcessLinkService.rb', line 112 def processACHEFTRefundWithTransactionId(processACHEFTRefundWithTransactionIdV1) res = @service.processACHEFTRefundWithTransactionId(processACHEFTRefundWithTransactionIdV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessACHEFTRefundWithTransactionIdV1Response"]["ProcessACHEFTRefundWithTransactionIdV1Result"]) end |
- (IATSResponse) processACHEFTWithCustomerCode(processACHEFTWithCustomerCodeV1)
Description
This service is for when you want to process a single direct debit (ACHEFT) transaction with an existing customer code.
73 74 75 76 77 |
# File 'lib/ProcessLinkService.rb', line 73 def processACHEFTWithCustomerCode(processACHEFTWithCustomerCodeV1) res = @service.processACHEFTWithCustomerCode(processACHEFTWithCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessACHEFTWithCustomerCodeV1Response"]["ProcessACHEFTWithCustomerCodeV1Result"]) end |
- (IATSResponse) processCreditCard(processCreditCardV1)
Description
This is when you want to do a once-off credit card transaction without needing a customer code (token) to be used or created.
47 48 49 50 51 |
# File 'lib/ProcessLinkService.rb', line 47 def processCreditCard(processCreditCardV1) res = @service.processCreditCard(processCreditCardV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessCreditCardV1Response"]["ProcessCreditCardV1Result"]) end |
- (IATSResponse) processCreditCardBatch(processCreditCardBatchV1)
Description
This service is for when you wish to process multiple credit card transactions (made on multiple credit cards) in one request.
125 126 127 128 129 |
# File 'lib/ProcessLinkService.rb', line 125 def processCreditCardBatch(processCreditCardBatchV1) res = @service.processCreditCardBatch(processCreditCardBatchV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessCreditCardBatchV1Response"]["ProcessCreditCardBatchV1Result"]) end |
- (IATSResponse) processCreditCardRefundWithTransactionId(processCreditCardRefundWithTransactionIdV1)
Description
This service is for when you need to refund a specific transaction made on a credit card in your system.
99 100 101 102 103 |
# File 'lib/ProcessLinkService.rb', line 99 def processCreditCardRefundWithTransactionId(processCreditCardRefundWithTransactionIdV1) res = @service.processCreditCardRefundWithTransactionId(processCreditCardRefundWithTransactionIdV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessCreditCardRefundWithTransactionIdV1Response"]["ProcessCreditCardRefundWithTransactionIdV1Result"]) end |
- (IATSResponse) processCreditCardWithCustomerCode(processCreditCardWithCustomerCodeV1)
Description
This service is for when you want to process a single credit card transaction using an existing credit card customer code.
34 35 36 37 38 |
# File 'lib/ProcessLinkService.rb', line 34 def processCreditCardWithCustomerCode(processCreditCardWithCustomerCodeV1) res = @service.processCreditCardWithCustomerCode(processCreditCardWithCustomerCodeV1) hash = Hash.from_xml(res.to_s) IATSResponse.new(hash["Envelope"]["Body"]["ProcessCreditCardWithCustomerCodeV1Response"]["ProcessCreditCardWithCustomerCodeV1Result"]) end |