Class: Brickwall::API::OneTimeToken
- Inherits:
-
Object
- Object
- Brickwall::API::OneTimeToken
- Defined in:
- lib/brickwall/api/one_time_token.rb
Class Method Summary collapse
Class Method Details
.create(card = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# 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 |