Skip to content

Commit

Permalink
Add support for the business field, so you can verify it was you that…
Browse files Browse the repository at this point in the history
… got paid
  • Loading branch information
Danial Pearce committed May 4, 2009
1 parent ff1e307 commit b6be36b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'

PKG_VERSION = "2.1.1"
PKG_VERSION = "2.1.2"
PKG_NAME = "paypal"
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

Expand Down
8 changes: 7 additions & 1 deletion lib/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Paypal
# if notify.acknowledge
# begin
#
# if notify.complete? and order.total == notify.amount
# if notify.complete? and order.total == notify.amount and notify.business == '[email protected]'
# order.status = 'success'
#
# shop.ship(order)
Expand Down Expand Up @@ -152,6 +152,12 @@ def item_id
params['item_number']
end

# This is the email address associated to the paypal account that recieved
# the payment.
def business
params['business']
end

# This is the item_name which you passed to paypal
def item_name
params['item_name']
Expand Down

0 comments on commit b6be36b

Please sign in to comment.