forked from openhood/paypal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the business field, so you can verify it was you that…
… got paid
- Loading branch information
Danial Pearce
committed
May 4, 2009
1 parent
ff1e307
commit b6be36b
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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'] | ||
|