Class: Culqi::Charge
- Inherits:
-
Object
- Object
- Culqi::Charge
- Defined in:
- lib/culqi/charge.rb
Constant Summary collapse
- URL =
'/charges/'
Class Method Summary collapse
Methods included from List
Methods included from Post
Methods included from Get
Class Method Details
.capture(id) ⇒ Object
13 14 15 16 |
# File 'lib/culqi/charge.rb', line 13 def self.capture(id) response = Culqi.connect("#{@url}#{id}/capture/", Culqi.secret_key, nil, "post", Culqi::READ_TIMEOUT) return response.read_body end |