forked from ritchiey/paypal_adaptive_gateway
-
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.
fixed for issue #1 Headers a case sensitive
- Loading branch information
MattG
committed
Apr 26, 2010
1 parent
ff3146c
commit 68eb592
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
lib/active_merchant/billing/gateways/paypal_adaptive_payments.rb
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
14 changes: 14 additions & 0 deletions
14
lib/active_merchant/billing/gateways/paypal_adaptive_payments/ext.rb
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Net | ||
module HTTPHeader | ||
|
||
#fix for case sensitive headers in paypal (issue #1) | ||
def []= key, val | ||
unless val | ||
@header.delete key | ||
return val | ||
end | ||
@header[key] = [val] | ||
end | ||
|
||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
lib/active_merchant/billing/gateways/paypal_adaptive_payments/version.rb
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module ActiveMerchant | ||
module Billing | ||
class PaypalAdaptivePaymentGateway < Gateway # :nodoc | ||
def version | ||
{:major => 0, :minor => 1, :patchlevel => 3} | ||
end | ||
end | ||
end | ||
|
||
end |