Class: Pin::Card

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

Overview

This class models Pin’s Cards API

Instance Attribute Summary

Attributes inherited from Base

#key

Class Method Summary collapse

Methods inherited from Base

#base_uri, build_collection_response, build_response, #initialize, make_request

Constructor Details

This class inherits a constructor from Pin::Base

Class Method Details

.create(options) ⇒ Object

creates a card given a hash of options pinpayments.com/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 pinpayments.com/docs/guides/payment-forms args: card_details (Hash) returns: card object



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

def self.create(options)
  build_response(make_request(:post, { url: 'cards', options: options }))
end