Sha256: 28730eea5ad448fe7922064921c1f9d7c9e4f3c07eeb19b44de578d2cf51f426

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

require "bundler/setup"
require "pp-adaptive"
require "pry"

Pathname.glob(File.join(File.dirname(__FILE__), "**/shared/**/*.rb")).each do |file|
  require file
end

def set_up_client(sandbox=false, mobile=false)
  @client = AdaptivePayments::Client.new(
    sandbox: (sandbox ? true : false ),
    checkout_type: (mobile ? "mobile" : "desktop")
  )  
  return @client
end

def set_up_mock_response
  @response = AdaptivePayments::ExecutePaymentRequest.new(
    :action_type     => "PAY",
    :pay_key         => "ABCD-1234",
    :funding_plan_id => "funding123"
  )
  return @response
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
creative-pp-adaptive-1.1.1 spec/spec_helper.rb