Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cubesystems/active_merchant_every_pay
EveryPay gateway for Active Merchant (Swedbank, SEB and LHV)
https://github.com/cubesystems/active_merchant_every_pay
Last synced: 3 months ago
JSON representation
EveryPay gateway for Active Merchant (Swedbank, SEB and LHV)
- Host: GitHub
- URL: https://github.com/cubesystems/active_merchant_every_pay
- Owner: cubesystems
- License: mit
- Created: 2020-05-16T23:07:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-02T10:41:02.000Z (over 4 years ago)
- Last Synced: 2024-10-01T18:48:24.060Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 953 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
EveryPay gateway for Active Merchant
=============================================[![Build Status](https://travis-ci.org/cubesystems/active_merchant_every_pay.svg?branch=master)](https://travis-ci.org/cubesystems/active_merchant_every_pay)
[![Coverage Status](https://coveralls.io/repos/github/cubesystems/active_merchant_every_pay/badge.svg?branch=master)](https://coveralls.io/github/cubesystems/active_merchant_every_pay?branch=master)## Install
```bash
$ gem install active_merchant_every_pay
```## Usage
```ruby
require "active_merchant_every_pay"gateway = ActiveMerchant::Billing::EveryPayGateway.new(
api_username: "abc12345",
api_secret: "asdsasdsdasd",
account_name: "EUR1",
gateway_url: "https://igw-demo.every-pay.com/api/v3",
customer_url: "https://shop.example.com/cart"
)# Authorize for 10 euros and 34 cents
response = gateway.authorize(1034, order_reference: "order #123", email: "[email protected]", customer_ip: "127.0.0.1")# Use this url to redirect user to merchant portal
response.authorization# Read status
gateway.result(payment_reference: response.payment_reference)
```### Gateways
#### SEB
test: `https://igw-demo.every-pay.com/api/v3`
production: `https://payment.ecommerce.sebgroup.com/api/v3`