openhood / paypal Goto Github PK
View Code? Open in Web Editor NEWPaypal plugin for Ruby on Rails
License: MIT License
Paypal plugin for Ruby on Rails
License: MIT License
Hey there, awesome plugin!
Just wanted to mention two small things (very minor, but cost me a few hours trying to debug).
In the readme where you say "When you're ready to go live...", you might also want to add instructions to add this:
Paypal::Notification.ipn_url = "https://www.paypal.com/cgi-bin/webscr"
Also I wasn't sure where to add these so I put them in environment.rb.
(This was the one that really threw me for a while). In notification.rb you have this in the comments:
#Example:
#Paypal::Notification.ipn_url = http://www.paypal.com/cgi-bin/webscr
I copied and pasted that in, but notice it doesn't have the 's' for 'https' !
Paypal displays a bizarre error message if you send it to http instead, and for the longest time I couldn't figure it out.
Thanks for the awesome plugin!
Brian
using the block method (code pasted below) yields this error. running rails 2.3.2, latest rubygems
<% paypal_form_tag do %>
<%= paypal_setup "#{@meal.name}", Money.us_dollar(@meal.price), '[email protected]', :notify_url => 'fixme' -%>
Pay Now with PayPal
<% end %>
At oddb.org the paypal gem is used outside a Rails application.
To make it work, it needed an
require 'active_support/core_ext/class/attribute_accessors'
in /usr/local/lib/ruby/gems/1.9.1/gems/paypal-2.0.0/lib/notification.rb
Thanks a lot!
Paypal prank
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.