Instance Method Details

#credit(money, creditcard, options = {}) ⇒ Object

Make a credit to a card (Void can only be done from the virtual terminal) Viaklix does not support credits by reference. You must pass in the credit card

51
52
53
54
55
56
57
58
59
60
61
62
63

# File 'lib/active_merchant/billing/gateways/viaklix.rb', line 51defcredit(money,creditcard,options={})ifcreditcard.is_a?(String)raiseArgumentError,"Reference credits are not supported. Please supply the original credit card"endform={}add_invoice(form,options)add_creditcard(form,creditcard)add_address(form,options)add_customer_data(form,options)add_test_mode(form,options)commit(:credit,money,form)end