lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.4.2 vs lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.5.0

- old
+ new

@@ -1,7 +1,5 @@ -# Authors:: MoneySpyder, http://moneyspyder.co.uk and E-consultancy, http://www.e-consultancy.com - module ActiveMerchant module Billing class DataCashGateway < Gateway self.default_currency = 'GBP' self.supported_countries = ['GB'] @@ -56,11 +54,11 @@ end # Perform a purchase, which is essentially an authorization and capture in a single operation. # # ==== Parameters - # * <tt>money</tt> The amount to be authorized. Either an Integer value in cents or a Money object. + # * <tt>money</tt> The amount to be authorized as an Integer value in cents. # * <tt>authorization_or_credit_card</tt>:: The continuous authority reference or CreditCard details for the transaction. # * <tt>options</tt> A hash of optional parameters. # * <tt>:order_id</tt> A unique reference for this order (corresponds to merchantreference in datacash documentation) # * <tt>:set_up_continuous_authority</tt> # Set to true to set up a recurring historic transaction account be set up. @@ -84,11 +82,11 @@ # Performs an authorization, which reserves the funds on the customer's credit card, but does not # charge the card. # # ==== Parameters # - # * <tt>money</tt> The amount to be authorized. Either an Integer value in cents or a Money object. + # * <tt>money</tt> The amount to be authorized as an Integer value in cents. # * <tt>authorization_or_credit_card</tt>:: The continuous authority reference or CreditCard details for the transaction. # * <tt>options</tt> A hash of optional parameters. # * <tt>:order_id</tt> A unique reference for this order (corresponds to merchantreference in datacash documentation) # * <tt>:set_up_continuous_authority</tt>:: # Set to true to set up a recurring historic transaction account be set up. @@ -111,11 +109,11 @@ # Captures the funds from an authorized transaction. # # ==== Parameters # - # * <tt>money</tt> -- The amount to be captured. Either an Integer value in cents or a Money object. + # * <tt>money</tt> -- The amount to be captured as anInteger value in cents. # * <tt>authorization</tt> -- The authorization returned from the previous authorize request. def capture(money, authorization, options = {}) commit(build_void_or_capture_request(FULFILL_TYPE, money, authorization, options)) end @@ -132,11 +130,11 @@ # Refund to a card # # ==== Parameters # - # * <tt>money</tt> The amount to be refunded. Either an Integer value in cents or a Money object. Set to nil for a full refund on existing transaction. + # * <tt>money</tt> The amount to be refunded as an Integer value in cents. Set to nil for a full refund on existing transaction. # * <tt>reference_or_credit_card</tt> The credit card you want to refund OR the datacash_reference for the existing transaction you are refunding # * <tt>options</tt> Are ignored when refunding via reference to an existing transaction, otherwise # * <tt>:order_id</tt> A unique reference for this order (corresponds to merchantreference in datacash documentation) # * <tt>:address</tt>:: billing address for card def credit(money, reference_or_credit_card, options = {}) @@ -175,10 +173,10 @@ # </Transaction> # </Request> # # Parameters: # * <tt>type</tt> must be FULFILL_TYPE or CANCEL_TYPE - # * <tt>money</tt> - optional - Money object or value in cents + # * <tt>money</tt> - optional - Integer value in cents # * <tt>authorization</tt> - the Datacash authorization from a previous succesful authorize transaction # * <tt>options</tt> # * <tt>order_id</tt> - A unique reference for the transaction # # Returns: