Sha256: c70dbf4a05e0d97aaeaa54a9ff9f01785d362bef4e2ec0a8597cd0f857f06451

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "FraudlabsproRuby" do
  it "work correctly with order validate" do
    FraudlabsproRuby::Configuration.api_key = 'YOUR_API_KEY'
    result = FraudlabsproRuby::Api::Order.validate(
      ip: '146.112.62.105'
    )
    expect(result).not_to be nil
    expect(result.code).to eq '200'
  end

  it "work correctly with get transaction" do
    FraudlabsproRuby::Configuration.api_key = 'YOUR_API_KEY'
    result = FraudlabsproRuby::Api::Order.getTransaction(
      transaction_id: '20180713-ZNVPV4',
      id_type: FraudlabsproRuby::Api::Order::FLP_ID
    )
    expect(result).not_to be nil
    expect(result.code).to eq '200'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fraudlabspro_ruby-3.1.0 spec/fraudlabspro_ruby_spec.rb