Class: Paystack::Resources::Charge
- Inherits:
-
BaseResource
- Object
- BaseResource
- Paystack::Resources::Charge
- Defined in:
- lib/paystack/resources/charge.rb
Instance Method Summary collapse
-
#check(reference) ⇒ Object
Check pending charge GET /charge/reference.
-
#create(body = {}) ⇒ Object
Create Charge POST /charge.
-
#submit_address(body = {}) ⇒ Object
Submit Address POST /charge/submit_address.
-
#submit_birthday(body = {}) ⇒ Object
Submit Birthday POST /charge/submit_birthday.
-
#submit_otp(body = {}) ⇒ Object
Submit OTP POST /charge/submit_otp.
-
#submit_phone(body = {}) ⇒ Object
Submit Phone POST /charge/submit_phone.
-
#submit_pin(body = {}) ⇒ Object
Submit PIN POST /charge/submit_pin.
Methods inherited from BaseResource
Instance Method Details
#check(reference) ⇒ Object
Check pending charge GET /charge/reference
10 11 12 |
# File 'lib/paystack/resources/charge.rb', line 10 def check(reference) @transport.get("/charge/#{reference}") end |
#create(body = {}) ⇒ Object
Create Charge POST /charge
17 18 19 |
# File 'lib/paystack/resources/charge.rb', line 17 def create(body = {}) @transport.post("/charge", body: body) end |
#submit_address(body = {}) ⇒ Object
Submit Address POST /charge/submit_address
24 25 26 |
# File 'lib/paystack/resources/charge.rb', line 24 def submit_address(body = {}) @transport.post("/charge/submit_address", body: body) end |
#submit_birthday(body = {}) ⇒ Object
Submit Birthday POST /charge/submit_birthday
31 32 33 |
# File 'lib/paystack/resources/charge.rb', line 31 def submit_birthday(body = {}) @transport.post("/charge/submit_birthday", body: body) end |
#submit_otp(body = {}) ⇒ Object
Submit OTP POST /charge/submit_otp
38 39 40 |
# File 'lib/paystack/resources/charge.rb', line 38 def submit_otp(body = {}) @transport.post("/charge/submit_otp", body: body) end |
#submit_phone(body = {}) ⇒ Object
Submit Phone POST /charge/submit_phone
45 46 47 |
# File 'lib/paystack/resources/charge.rb', line 45 def submit_phone(body = {}) @transport.post("/charge/submit_phone", body: body) end |
#submit_pin(body = {}) ⇒ Object
Submit PIN POST /charge/submit_pin
52 53 54 |
# File 'lib/paystack/resources/charge.rb', line 52 def submit_pin(body = {}) @transport.post("/charge/submit_pin", body: body) end |