class Brickwall::API::OneTimeToken

Public Class Methods

create(card = {}) click to toggle source
# File lib/brickwall/api/one_time_token.rb, line 5
def self.create(card = {})
  response = RestClient.post API.url('token'), {
    public_key: Brickwall.configuration.brick_public_key,
    card: card
  }, {
    'X-ApiKey' => Brickwall.configuration.brick_private_key
  }
  JSON.parse response
end