Class: Pin::Card

Inherits:
Base
  • Object
show all
Defined in:
lib/pin_up/card.rb

Overview

This class models Pin’s Cards API

Class Method Summary collapse

Methods inherited from Base

#initialize, #key, #uri

Constructor Details

This class inherits a constructor from Pin::Base

Class Method Details

.create(options) ⇒ Object

creates a card given a hash of options pin.net.au/docs/api/cards Only use if you have a secure server connection, if in doubt use the form example provided by Pin to create a card_token pin.net.au/docs/guides/payment-forms args: card_details (Hash) returns: card object



14
15
16
# File 'lib/pin_up/card.rb', line 14

def self.create(options)
  build_response(auth_post('cards', options))
end