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).
Add this line to your application's Gemfile:
Configure the plugin by writing an initializer:
. 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
config.mode to either
:prod to switch between the sandbox and prod endpoints, and the keys to the corresponding keys provided by PayMaya.
See the PayMaya Ruby SDK Wiki Page for more information regarding usage and integration.