This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Olivier BONNAURE (author)
Tue Apr 07 12:55:42 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Mar 31 08:09:28 -0700 2009 | |
| |
README.rdoc | Thu Apr 02 12:00:09 -0700 2009 | |
| |
Rakefile | Tue Apr 07 12:55:42 -0700 2009 | |
| |
init.rb | Tue Mar 31 08:32:35 -0700 2009 | |
| |
lib/ | Tue Apr 07 12:55:42 -0700 2009 | |
| |
paypal_nvp.gemspec | Tue Apr 07 12:55:42 -0700 2009 |
README.rdoc
Paypal NVP
Paypal NVP allow to connect your Ruby on Rails application to the Paypal NVP API.
Installation
The recommended way is that you get the gem:
$ gem sources -a http://gems.github.com (you only have to do this once) $ sudo gem install solisoft-paypal_nvp
PaypalNVP need a paypal.yml file in your config directory.
# All those fields are mandatory
sandbox:
url: "https://api-3t.sandbox.paypal.com/nvp"
user: "o.bonn_1237393081_biz_api1.solisoft.net"
pass: "1237393093"
cert: "AU2Yv5COwWPCfeYLv34Z766F-gfNAzX6LaQE6VZkHMRq35Gmite-bMXu"
live:
url: "https://api-3t.paypal.com/nvp"
user: "o.bonn_1237393081_biz_api1.solisoft.net"
pass: "1237393093"
cert: "AU2Yv5COwWPCfeYLv34Z766F-gfNAzX6LaQE6VZkHMRq35Gmite-bMXu"
Example usage
p = PaypalNVP.new(true) # true mean "use sandbox"
data = {
:method => "MyPaypalMethod",
:amt => 55
# other params needed
}
result = p.call_paypal(data) # will return a hash
puts result["ACK"] # Success







