StemboltHQ/solidus_paybright

Name: solidus_paybright

Owner: Stembolt

Description: Solidus payment method for https://paybright.com

Created: 2017-06-13 13:07:29.0

Updated: 2017-07-05 17:05:38.0

Pushed: 2018-02-02 08:35:41.0

Homepage:

Size: 49

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SolidusPaybright

Build Status

This extension provides the Paybright payment option for your Solidus storefront

Installation

Add solidus_paybright to your Gemfile:

'solidus_paybright'

Bundle your dependencies and run the installation generator:

le
le exec rails g solidus_paybright:install
Configuration

Configure the required credentials using static preferences, for example:

e.config do |config|
nfig.static_model_preferences.add(
Spree::PaymentMethod::Paybright,
"paybright_credentials",
api_key: ENV["PAYBRIGHT_API_KEY"],
api_token: ENV["PAYBRIGHT_API_TOKEN"],
test_mode: true,
shop_country_code: "CA",
shop_name: "My shop",


Also make sure to set the default_url_options values for the Solidus engine, on all the environments. This is required to generate absolute URLs:

e::Core::Engine.routes.default_url_options = {
st: "example.com",
otocol: "https"

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs, and Rubocop static code analysis. The dummy app can be regenerated by using rake test_app.

le
le exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

ire 'solidus_paybright/factories'

Copyright (c) 2017 Stembolt, released under the New BSD License


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.