--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Refund to a card
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <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.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>reference_or_credit_card</tt> The credit card you want to refund OR the datacash_reference for the existing transaction you are refunding
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>options</tt> Are ignored when refunding via reference to an existing transaction, otherwise
  - !ruby/object:SM::Flow::LIST 
    contents: 
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: <tt>:order_id</tt> A unique reference for this order (corresponds to merchantreference in datacash documentation)
    - !ruby/struct:SM::Flow::LI 
      label: "*"
      body: "<tt>:address</tt>:: billing address for card"
    type: :BULLET
  type: :BULLET
full_name: ActiveMerchant::Billing::DataCashGateway#credit
is_singleton: false
name: credit
params: (money, reference_or_credit_card, options = {})
visibility: public
