154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
# File 'lib/active_merchant/billing/gateways/plugnpay.rb', line 154
def credit(money, identification_or_creditcard, options = {})
post = PlugnpayPostData.new
add_amount(post, money, options)
if identification_or_creditcard.is_a?(String)
post[:orderID] = identification_or_creditcard
commit(:refund, post)
else
add_creditcard(post, identification_or_creditcard)
add_addresses(post, options)
add_customer_data(post, options)
commit(:credit, post)
end
end
|