Sha256: cbb89733633443b74b03e033ffd6725be8c9188fff57c66c4788e0043163aada
Contents?: true
Size: 372 Bytes
Versions: 2
Compression:
Stored size: 372 Bytes
Contents
module Brickwall module API class OneTimeToken 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brickwall-0.2.0 | lib/brickwall/api/one_time_token.rb |
brickwall-0.1.0 | lib/brickwall/api/one_time_token.rb |