Skip to content
Ruby bindings for the PayU Latam API
Branch: master
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.
.circleci
bin
lib
spec
.gitignore
.rubocop.yml
Gemfile
LICENSE
README.md
payu-latam.gemspec

README.md

PayU Latam Ruby Library

CircleCI Coverage Status Maintainability

Installation

gem "payu-latam", github: "lengio/payu-latam-ruby", require: "pay_u"

# Local
gem build payu-latam.gemspec

Usage

require "pay_u"

PayU.configure do |config|
  config.api_key = "4Vj8eK4rloUd272L48hsrarnUA" # Replace with your own API key
  config.merchant_id = 508_029 # Replace with your own merchant ID
  config.test = true # Test mode
end

order = PayU::Order.new(
  amount: 20_000,
  currency: :COP,
  description: "Test PAYU"
)

order.form.params

Sandbox

  • Sandbox endpoint
  • Test mode in your account
  • Test param in params

Testing

rspec

Console

bin/console
You can’t perform that action at this time.