A Ruby SDK for the PayMaya Checkout and Payment Vault APIs
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
fixtures/vcr_cassettes
lib
spec
.gitignore
.rspec
.rubocop.yml
.travis.yml
CODE_OF_CONDUCT.md
Gemfile
LICENSE.md
README.md
Rakefile
paymaya.gemspec

README.md

PayMaya Ruby SDK

The PayMaya Ruby SDK allows your Ruby/Ruby on Rails app to accept payments from your customers using any MasterCard and Visa enabled card (credit, debit, or prepaid).

Installation

Add this line to your application's Gemfile:

gem 'paymaya'

Then execute:

$ bundle

Configuration

Configure the plugin by writing an initializer:

Paymaya.configure do |config|
  config.mode = :sandbox
  config.payment_vault_public_key = 'pk_abc123'
  config.payment_vault_secret_key = 'sk_abc123'
  config.checkout_public_key = 'pk_abc123'
  config.checkout_secret_key = 'sk_abc123'
end

Set config.mode to either :sandbox or :prod to switch between the sandbox and prod endpoints, and the keys to the corresponding keys provided by PayMaya.

Usage

See the PayMaya Ruby SDK Wiki Page for more information regarding usage and integration.