class Pin::Card

This class models Pin's Cards API

Public Class Methods

create(options) click to toggle source

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

# File lib/pin_up/card.rb, line 13
def self.create(options)
  build_response(make_request(:post, { url: 'cards', options: options }))
end