Module: Otp
- Defined in:
- lib/paystackapi/core/otp.rb
Class Method Summary collapse
Class Method Details
.resend_otp(body) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/paystackapi/core/otp.rb', line 2 def self.resend_otp(body) api = HTTParty.post("#{API::BASE_URL}" + "#{API::TRANSFER_PATH}" + "/resend_otp", :body => body.to_json, :headers => { "Authorization"=> ENV["PAYSTACK_SECRET_KEY"], "content-type" => "application/json"}) return api end |