Paypal Platform Ruby SDK – Adaptive Payments

Hey everyone,

This is the SDK for PayPal adaptive payments. I’ve just uploaded it to *hopefully* make it a little easier to find. Please note that it has not been updated recently and that there are a few changes to be made. The StackOverflow post below provides a few examples:

StackOverflow Post:
Adaptive Payments with Ruby

I’ll try to list any others as I come across them, but if you’ve got some of your own please let me know and I’ll try to keep the post up to date.

Download SDK here:
Paypal Platform SDK


Error #1:

Internal Server Error
 
undefined method `debug_rjs=' for ActionView::Base:Class

Remove the following line from your development.rb config file:

  1. PayPalPlatformRubySDK::Application.configure do
  2.   # Settings specified here will take precedence over those in config/environment.rb
  3.  
  4.   # In the development environment your application's code is reloaded on
  5.   # every request.  This slows down response time but is perfect for development
  6.   # since you don't have to restart the webserver when you make code changes.
  7.   config.cache_classes = false
  8.  
  9.   # Log error messages when you accidentally call methods on nil.
  10.   config.whiny_nils = true
  11.  
  12.   # Show full error reports and disable caching
  13.   config.consider_all_requests_local       = true
  14.   #config.action_view.debug_rjs             = true <---- Comment this line out (no longer supported)
  15.   config.action_controller.perform_caching = false
  16.  
  17.   # Don't care if the mailer can't send
  18.   config.action_mailer.raise_delivery_errors = false
  19.  
  20.   # Print deprecation notices to the Rails logger
  21.   config.active_support.deprecation = :log
  22.  
  23.   # Only use best-standards-support built into browsers
  24.   config.action_dispatch.best_standards_support = :builtin
  25. end

Paypal IPN History:
For some reason the IPN history button often won’t appear in the sandbox, use the following link to view it:
https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_display-ipns-history

IPN Notifications:
Just a warning for anyone else setting up payments with PayPal, the sandbox IPN is extremely flaky. It has gone down twice in the last six months for weeks at a time, with no warning or error messages. If you’re not receiving the IPN check out the forums to make sure it’s not down.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.