Sha256: eca09c21636311faa99165a81f0f35ddd4b2ccde6de2e70ba432cdc3105419b2

Contents?: true

Size: 857 Bytes

Versions: 5

Compression:

Stored size: 857 Bytes

Contents

# bckbn-ruby

> Ruby interface to the Bckbn API

## Installation

```bash
gem install bckbn
```

## Configuration

### Global

```ruby
require "bckbn"

Bckbn.api_base = "..."
Bckbn.access_token = "..."
Bckbn.merchant_id = "..."

Bckbn::Transaction.capture({ 
  litle_txn_id: "13254123434",
  id: "12345",
  report_group: "ABC Division"
})
```

### Per Request

```ruby
require "bckbn"

api_base = "..."
access_token = "..."
merchant_id = "..."

Bckbn::Transaction.capture(
  { 
    litle_txn_id: "13254123434",
    id: "12345",
    report_group: "ABC Division"
  }, 
  {
    api_base:,
    access_token:,
    merchant_id:
  }
)
```

## Documentation

```
open doc/index.html
```

## Development

Run specs
```bash
bundle exec rake spec
```

Regenerate docs
```bash
bundle exec rake yard
```

Run linter
```bash
bundle exec rake rubocop
```

## License

MIT

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bckbn-1.0.0 README.md
bckbn-0.2.0 README.md
bckbn-0.1.2 README.md
bckbn-0.1.1 README.md
bckbn-0.1.0 README.md