Class: Stripe::ConfirmationToken::TestHelpers

Inherits:
APIResourceTestHelpers show all
Defined in:
lib/stripe/resources/confirmation_token.rb

Constant Summary collapse

RESOURCE_CLASS =
ConfirmationToken

Class Method Summary collapse

Methods inherited from APIResourceTestHelpers

custom_method, #initialize, resource_url, #resource_url

Methods included from APIOperations::Request

included

Constructor Details

This class inherits a constructor from Stripe::APIResourceTestHelpers

Class Method Details

.create(params = {}, opts = {}) ⇒ Object

Creates a test mode Confirmation Token server side for your integration tests.



29
30
31
32
33
34
35
36
# File 'lib/stripe/resources/confirmation_token.rb', line 29

def self.create(params = {}, opts = {})
  request_stripe_object(
    method: :post,
    path: "/v1/test_helpers/confirmation_tokens",
    params: params,
    opts: opts
  )
end

.resource_classObject



24
25
26
# File 'lib/stripe/resources/confirmation_token.rb', line 24

def self.resource_class
  "ConfirmationToken"
end