Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing all references to amazonPaymentsAccountId which is not to be…

… used with signed buttons as generated herein
  • Loading branch information...
commit 2eaefc0713adf9af1c1f8ce9340c65f59f1df66c 1 parent b5c9703
@thirtysixthspan authored
View
4 README.rdoc
@@ -29,7 +29,6 @@ Configure the gem with your Amazon credentials:
Simplepay.aws_access_key_id = 'MYAMAZONACCESSKEYID'
Simplepay.aws_secret_access_key = 'MYAMAZONSECRETACCESSKEY'
- Simplepay.account_id = 'ACCOUNTIDFORAMAZONPAYMENTS'
Then, let Rails know about the Simplepay::Helpers:
@@ -94,8 +93,7 @@ that sellers items:
== REQUIREMENTS:
1. You must have an Amazon Payments <b>business account</b>.
-2. You must know your Amazon Payments <b>account identifier</b> [instructions to come]
-3. You must know your Amazon Web Services <b>access key</b> and <b>secret access key</b>.
+2. You must have an Amazon Web Services account and know your <b>access key</b> and <b>secret access key</b>.
== INSTALL:
View
2  lib/simplepay/service.rb
@@ -9,7 +9,6 @@ module Simplepay
# The following fields are required for all Simple Pay services:
#
# access_key:: Your Amazon Web Service (AWS) access key (automatically filled from Simplepay.aws_access_key_id).
- # account_id:: Your Amazon Payments account identifier (automatically filled from Simplepay.account_id)
# signature:: The validation string, guaranteeing that you are the one generating the request and that the values were not tampered with enroute (automatically generated by the form generators)
#
class Service
@@ -107,7 +106,6 @@ def generate_submit_field(submit)
def set_accessor_fields
self.access_key = Simplepay.aws_access_key_id if self.respond_to?(:access_key=)
- self.account_id = Simplepay.account_id if self.respond_to?(:account_id=)
end
def set_fields(hash)
View
1  lib/simplepay/services/donation.rb
@@ -59,7 +59,6 @@ class Donation < Service
required_field :access_key
required_field :signature
- required_field :account_id, :as => :amazon_payments_account_id
required_field :signature_method, :value => 'HmacSHA256'
required_field :signature_version, :value => '2'
View
1  lib/simplepay/services/marketplace.rb
@@ -57,7 +57,6 @@ class Marketplace < Service
required_field :access_key
required_field :signature
- required_field :account_id, :as => :amazon_payments_account_id
required_field :signature_method, :value => 'HmacSHA256'
required_field :signature_version, :value => '2'
View
1  lib/simplepay/services/marketplace_policy.rb
@@ -32,7 +32,6 @@ class MarketplacePolicy < Service
required_field :access_key, :as => :caller_key
required_field :signature, :as => :signature
- required_field :account_id, :as => :caller_account_id
required_field :signature_method, :value => 'HmacSHA256'
required_field :signature_version, :value => '2'
View
3  lib/simplepay/services/standard.rb
@@ -42,7 +42,6 @@ class Standard < Service
required_field :signature
required_field :signature_method, :value => 'HmacSHA256'
required_field :signature_version, :value => '2'
- required_field :account_id, :as => :amazon_payments_account_id
field :abandon_url
field :cobranding_style, :value => 'logo'
@@ -52,7 +51,7 @@ class Standard < Service
field :process_immediate, :class => Support::Boolean
field :reference_id
field :return_url
-
+
end
end
View
1  lib/simplepay/services/subscription.rb
@@ -50,7 +50,6 @@ class Subscription < Service
required_field :access_key
required_field :signature
- required_field :account_id, :as => :amazon_payments_account_id
required_field :signature_method, :value => 'HmacSHA256'
required_field :signature_version, :value => '2'
View
6 test/simplepay/services/test_donation.rb
@@ -13,11 +13,7 @@ def self.model_class; Simplepay::Services::Donation; end
should_have_service_field :signature,
:as => 'signature',
- :required => true
-
- should_have_service_field :account_id,
- :as => 'amazonPaymentsAccountId',
- :required => true
+ :required => true
should_have_service_field :description,
:as => 'description',
View
6 test/simplepay/services/test_marketplace.rb
@@ -13,11 +13,7 @@ def self.model_class; Simplepay::Services::Marketplace; end
should_have_service_field :signature,
:as => 'signature',
- :required => true
-
- should_have_service_field :account_id,
- :as => 'amazonPaymentsAccountId',
- :required => true
+ :required => true
should_have_service_field :description,
:as => 'description',
View
6 test/simplepay/services/test_marketplace_policy.rb
@@ -13,11 +13,7 @@ def self.model_class; Simplepay::Services::MarketplacePolicy; end
should_have_service_field :signature,
:as => 'signature',
- :required => true
-
- should_have_service_field :account_id,
- :as => 'callerAccountId',
- :required => true
+ :required => true
should_have_service_field :max_fixed_fee,
:as => 'maxFixedFee',
Please sign in to comment.
Something went wrong with that request. Please try again.