0.0
No release in over a year
A Ruby wrapper for the Viva Wallet Smart Checkout API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Viva Wallet

Gem Version

A Ruby wrapper for the Viva Wallet Smart Checkout API.

Installation

Add module to your Gemfile:

gem 'viva_wallet'

Then run bundle to install the Gem:

bundle install

Set up an initializer file with your Viva Wallet Smart Checkout client keys:

VivaWallet.client_id  = 'viva_client_id'
VivaWallet.client_secret = 'viva_client_secret'
VivaWallet.source_code = 'website_app_source_code'
VivaWallet.test_mode  = true/false

e.g. config/initializers/viva_wallet.rb

Usage

This gem provides a collection of operations for use within the Viva Wallet Smarket Checkout API.

Generate API access token

Use OAuth to generate new API access for an account

VivaWallet::Authentication.oauth

Payments

Create a Payment Order

VivaWallet::Payment.create(payment_order_params)

How to contribute

  • Fork the project
  • Create your feature or bug fix
  • Add the requried tests for it.
  • Commit (do not change version or history)
  • Send a pull request against the development branch

Copyright

Copyright (c) 2022 Tom Dallimore (@tom_dallimore)
Licenced under the MIT licence.