class CloudPayments::Namespaces::Payments
Public Instance Methods
cards()
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 5 def cards Cards.new(client, resource_path) end
confirm(id, amount)
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 13 def confirm(id, amount) request(:confirm, transaction_id: id, amount: amount)[:success] end
find(invoice_id)
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 37 def find(invoice_id) response = request(:find, invoice_id: invoice_id) Transaction.new(response[:model]) end
get(id)
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 32 def get(id) response = request(:get, transaction_id: id) Transaction.new(response[:model]) end
post3ds(id, pa_res)
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 27 def post3ds(id, pa_res) response = request(:post3ds, transaction_id: id, pa_res: pa_res) Transaction.new(response[:model]) end
refund(id, amount)
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 23 def refund(id, amount) request(:refund, transaction_id: id, amount: amount)[:success] end
tokens()
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 9 def tokens Tokens.new(client, resource_path) end
void(id)
click to toggle source
# File lib/cloud_payments/namespaces/payments.rb, line 17 def void(id) request(:void, transaction_id: id)[:success] end
Also aliased as: cancel