Sha256: 2aeba9fad0cedf0bda0f6830e199ec9df0350da6b29106e47ea5d4b763967630

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

# WirecardCheckoutPage

## Example usage

Gateway setup
```ruby
gateway = WirecardCheckoutPage::Gateway.new(
  secret:     YOUR_SECRET,
  customerId: YOUR_ID
)
```

Init a new payment process
```ruby
params = {
  fingerprint_keys: ["secret", "customerId", "amount", ..], # Put in all your fingerprint keys
  currency:         'EUR',
  language:         'en',
  amount:           '100.00',
  paymentType:      'SELECT',
  orderDescription: 'Your order no 1',
  successURL:       'http://example.com/success',
  cancelURL:        'http://example.com/cancel',
  failureURL:       'http://example.com/failure',
  serviceURL:       'http://example.com/service',
  confirmURL:       'http://example.com/confirm',
  orderReference:   YOUR_UNIQUE_ORDER_REFERENCE,
}

response = gateway.init(params)

puts response.success?
#=> true

puts response.params
#=> { payment_url: 'http://example.com/redirect_your_user_to_here' }
```

## Badges

[![Code Climate](https://codeclimate.com/github/flori/wirecard_checkout_page/badges/gpa.svg)](https://codeclimate.com/github/flori/wirecard_checkout_page)

[![Test Coverage](https://codeclimate.com/github/flori/wirecard_checkout_page/badges/coverage.svg)](https://codeclimate.com/github/flori/wirecard_checkout_page)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wirecard_checkout_page-0.0.1 README.md
wirecard_checkout_page-0.0.0 README.md