Socket
Book a DemoInstallSign in
Socket

verifi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verifi

0.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Overview: You can use this gem to access Verifi.com's hosted payment page API for creating and reading payment requests.

Installation:

sudo gem install verifi

Usage:

require 'verifi'

verifi = Verifi::Client.new YOUR_API_KEY, YOUR_SECRET_KEY

payment_params = { :amount => '123.00', :currency => 'USD', :orderid => '123', :return_url => 'http://yoursite.com/order_complete', :cancel_url => 'http://yoursite.com/continue_shopping', :failure_url => 'http://yoursite.com/order_failure', :request_type => 'sale' }

#Creating a payment request: payment_request = verifi.create_payment_request payment_params

puts "just made payment request with pay_key: #{payment_request['pay_key']}"

#Reading the payment request:

fetched_payment_request = verifi.read_payment_request payment_request['pay_key']

FAQs

Package last updated on 27 May 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.