Git Product home page Git Product logo

rupal's Introduction

rupal

Ruby gem for interfacing PayPal NVP API

I don't have time for coming up with clever names. Ruby + PayPal == rupal, deal with it.

Changelog

v0.1.0

  • Added ReferenceTransaction API helper class
  • Added BillingAgreement API helper class

v0.0.1

  • Initial commit

Dependencies

  • active_support for it's to_query/to_param methods
  • retryable for, you guessed it, retrying failed connections/timeouts

Setup

Create a configuration file 'paypal.yml' and place it in your apps config/ folder. The configuration file is automatically loaded for you and values are accessible via PayPal.config struct.

Example configuration:

development: &dev
  api:
    url: https://api-3t.sandbox.paypal.com/nvp
    version: 84.0
    user: [email protected]
    pwd: YOUR_API_PASSWORD
    signature: YOUR_API_SIGNATURE
  retries: 3

production:
  <<: *dev
  api:
    url: https://api-3t.paypal.com/nvp

Usage

require 'rupal'

response = PayPal::Request.new(:method => :DoCapture, ...).send_request
if response.success?
  puts "Request completed at #{response.timestamp}, CORRELATIONID=#{response.correlation_id}"
  # do stuff with response.data hash
else
  response.errors.each { |e| puts e }
end

rupal's People

Contributors

esfourteen avatar bak1an avatar nktsitas avatar

Watchers

Dave Mauldin avatar Nick Wilson avatar  avatar Alan Heywood avatar Alex Buznik avatar Seth Hochberg avatar James Cloos avatar Scott Paradis avatar Andrii avatar David Leibovych avatar  avatar Andrew Simpson avatar  avatar Hugo Almeida avatar  avatar  avatar  avatar Mayank Agarwal avatar David avatar Dave Hanson avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.