paypal-sdk-buttonmanager 1.96.2 → 1.98.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/paypal-sdk-buttonmanager.rb +0 -0
- data/lib/paypal-sdk/button_manager/data_types.rb +11 -2
- data/lib/paypal-sdk/button_manager/services.rb +1 -1
- data/lib/paypal-sdk/button_manager/version.rb +1 -1
- data/spec/button_manager_spec.rb +27 -27
- data/spec/config/cert_key.pem +0 -0
- data/spec/config/paypal.yml +25 -25
- data/spec/spec_helper.rb +6 -6
- metadata +4 -4
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
@@ -182,6 +182,13 @@ module PayPal::SDK
|
|
182
182
|
|
183
183
|
|
184
184
|
|
185
|
+
# Normalization Status of the Address
|
186
|
+
class AddressNormalizationStatusCodeType < EnumType
|
187
|
+
self.options = { 'NONE' => 'None', 'NORMALIZED' => 'Normalized', 'UNNORMALIZED' => 'Unnormalized' }
|
188
|
+
end
|
189
|
+
|
190
|
+
|
191
|
+
|
185
192
|
# PaymentDetailsCodeType This is the PayPal payment details type (used by DCC and Express Checkout)
|
186
193
|
class PaymentActionCodeType < EnumType
|
187
194
|
self.options = { 'NONE' => 'None', 'AUTHORIZATION' => 'Authorization', 'SALE' => 'Sale', 'ORDER' => 'Order' }
|
@@ -254,7 +261,7 @@ module PayPal::SDK
|
|
254
261
|
|
255
262
|
# PendingStatusCodeType The pending status for a PayPal Payment transaction which matches the output from IPN
|
256
263
|
class PendingStatusCodeType < EnumType
|
257
|
-
self.options = { 'NONE' => 'none', 'ECHECK' => 'echeck', 'INTL' => 'intl', 'VERIFY' => 'verify', 'ADDRESS' => 'address', 'UNILATERAL' => 'unilateral', 'OTHER' => 'other', 'UPGRADE' => 'upgrade', 'MULTICURRENCY' => 'multi-currency', 'AUTHORIZATION' => 'authorization', 'ORDER' => 'order', 'PAYMENTREVIEW' => 'payment-review' }
|
264
|
+
self.options = { 'NONE' => 'none', 'ECHECK' => 'echeck', 'INTL' => 'intl', 'VERIFY' => 'verify', 'ADDRESS' => 'address', 'UNILATERAL' => 'unilateral', 'OTHER' => 'other', 'UPGRADE' => 'upgrade', 'MULTICURRENCY' => 'multi-currency', 'AUTHORIZATION' => 'authorization', 'ORDER' => 'order', 'PAYMENTREVIEW' => 'payment-review', 'REGULATORYREVIEW' => 'regulatory-review' }
|
258
265
|
end
|
259
266
|
|
260
267
|
|
@@ -689,6 +696,8 @@ module PayPal::SDK
|
|
689
696
|
object_of :InternationalStreet, String, :namespace => :ebl
|
690
697
|
# Status of the address on file with PayPal. IMPORTANT: Do not set this element for SetExpressCheckout, DoExpressCheckoutPayment, DoDirectPayment, CreateRecurringPaymentsProfile or UpdateRecurringPaymentsProfile.
|
691
698
|
object_of :AddressStatus, AddressStatusCodeType, :namespace => :ebl
|
699
|
+
# Returns Normalization Status of the Address. Possible values are Normalized, Unnormalized, and None.
|
700
|
+
object_of :AddressNormalizationStatus, AddressNormalizationStatusCodeType, :namespace => :ebl
|
692
701
|
end
|
693
702
|
end
|
694
703
|
|
@@ -1710,7 +1719,7 @@ module PayPal::SDK
|
|
1710
1719
|
object_of :ExchangeRate, String, :namespace => :ebl
|
1711
1720
|
# The status of the payment: None: No status Created: A giropay payment has been initiated. Canceled-Reversal: A reversal has been canceled. For example, you won a dispute with the customer, and the funds for the transaction that was reversed have been returned to you. Completed: The payment has been completed, and the funds have been added successfully to your account balance. Denied: You denied the payment. This happens only if the payment was previously pending because of possible reasons described for the PendingReason element. Expired: This authorization has expired and cannot be captured. Failed: The payment has failed. This happens only if the payment was made from your customer's bank account. In-Progress: The transaction is in process of authorization and capture. Partially-Refunded: The transaction has been partially refunded. Pending: The payment is pending. See "PendingReason" for more information. Refunded: You refunded the payment. Reversed: A payment was reversed due to a chargeback or other type of reversal. The funds have been removed from your account balance and returned to the buyer. The reason for the reversal is specified in the ReasonCode element. Processed: A payment has been accepted. Voided: This authorization has been voided. Completed-Funds-Held: The payment has been completed, and the funds have been added successfully to your pending balance. See the "HoldDecision" field for more information.
|
1712
1721
|
object_of :PaymentStatus, PaymentStatusCodeType, :namespace => :ebl
|
1713
|
-
# The reason the payment is pending: none: No pending reason address: The payment is pending because your customer did not include a confirmed shipping address and your Payment Receiving Preferences is set such that you want to manually accept or deny each of these payments. To change your preference, go to the Preferences section of your Profile. authorization: You set PaymentAction to Authorization on SetExpressCheckoutRequest and have not yet captured funds. echeck: The payment is pending because it was made by an eCheck that has not yet cleared. intl: The payment is pending because you hold a non-U.S. account and do not have a withdrawal mechanism. You must manually accept or deny this payment from your Account Overview. multi-currency: You do not have a balance in the currency sent, and you do not have your Payment Receiving Preferences set to automatically convert and accept this payment. You must manually accept or deny this payment. unilateral: The payment is pending because it was made to an email address that is not yet registered or confirmed. upgrade: The payment is pending because it was made via credit card and you must upgrade your account to Business or Premier status in order to receive the funds. upgrade can also mean that you have reached the monthly limit for transactions on your account. verify: The payment is pending because you are not yet verified. You must verify your account before you can accept this payment. other: The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.
|
1722
|
+
# The reason the payment is pending: none: No pending reason address: The payment is pending because your customer did not include a confirmed shipping address and your Payment Receiving Preferences is set such that you want to manually accept or deny each of these payments. To change your preference, go to the Preferences section of your Profile. authorization: You set PaymentAction to Authorization on SetExpressCheckoutRequest and have not yet captured funds. echeck: The payment is pending because it was made by an eCheck that has not yet cleared. intl: The payment is pending because you hold a non-U.S. account and do not have a withdrawal mechanism. You must manually accept or deny this payment from your Account Overview. multi-currency: You do not have a balance in the currency sent, and you do not have your Payment Receiving Preferences set to automatically convert and accept this payment. You must manually accept or deny this payment. unilateral: The payment is pending because it was made to an email address that is not yet registered or confirmed. upgrade: The payment is pending because it was made via credit card and you must upgrade your account to Business or Premier status in order to receive the funds. upgrade can also mean that you have reached the monthly limit for transactions on your account. verify: The payment is pending because you are not yet verified. You must verify your account before you can accept this payment. regulatory-review: This payment is pending while we make sure it meets regulatory requirements. We'll contact you again in 24-72 hours with the outcome of our review. other: The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.
|
1714
1723
|
object_of :PendingReason, PendingStatusCodeType, :namespace => :ebl
|
1715
1724
|
# The reason for a reversal if TransactionType is reversal: none: No reason code chargeback: A reversal has occurred on this transaction due to a chargeback by your customer. guarantee: A reversal has occurred on this transaction due to your customer triggering a money-back guarantee. buyer-complaint: A reversal has occurred on this transaction due to a complaint about the transaction from your customer. refund: A reversal has occurred on this transaction because you have given the customer a refund. other: A reversal has occurred on this transaction due to a reason not listed above.
|
1716
1725
|
object_of :ReasonCode, ReversalReasonCodeType, :namespace => :ebl
|
data/spec/button_manager_spec.rb
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "ButtonManager" do
|
4
|
-
|
5
|
-
before :all do
|
6
|
-
@client = PayPal::SDK::ButtonManager::API.new
|
7
|
-
end
|
8
|
-
|
9
|
-
describe "Services" do
|
10
|
-
PayPal::SDK::ButtonManager::Services.instance_methods.select{|s| s =~ /^[A-Z]/ and s !~ /^Build/ }.each do |service_method|
|
11
|
-
it "make empty request to #{service_method}" do
|
12
|
-
response = @client.send(service_method, {})
|
13
|
-
response.ack.should_not be_nil
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "DataTypes" do
|
19
|
-
PayPal::SDK::ButtonManager::DataTypes.constants.each do |const_name|
|
20
|
-
it "create object for #{const_name}" do
|
21
|
-
klass = PayPal::SDK::ButtonManager::DataTypes.const_get(const_name)
|
22
|
-
klass.new.should be_a klass
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "ButtonManager" do
|
4
|
+
|
5
|
+
before :all do
|
6
|
+
@client = PayPal::SDK::ButtonManager::API.new
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "Services" do
|
10
|
+
PayPal::SDK::ButtonManager::Services.instance_methods.select{|s| s =~ /^[A-Z]/ and s !~ /^Build/ }.each do |service_method|
|
11
|
+
it "make empty request to #{service_method}" do
|
12
|
+
response = @client.send(service_method, {})
|
13
|
+
response.ack.should_not be_nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "DataTypes" do
|
19
|
+
PayPal::SDK::ButtonManager::DataTypes.constants.each do |const_name|
|
20
|
+
it "create object for #{const_name}" do
|
21
|
+
klass = PayPal::SDK::ButtonManager::DataTypes.const_get(const_name)
|
22
|
+
klass.new.should be_a klass
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
data/spec/config/cert_key.pem
CHANGED
File without changes
|
data/spec/config/paypal.yml
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
test: &default
|
2
|
-
username: jb-us-seller_api1.paypal.com
|
3
|
-
password: WX4WTU3S8MY44S7F
|
4
|
-
signature: AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy
|
5
|
-
app_id: APP-80W284485P519543T
|
6
|
-
http_timeout: 30
|
7
|
-
mode: sandbox
|
8
|
-
redirect_url: "https://www.sandbox.paypal.com/webscr&cmd="
|
9
|
-
dev_central_url: "https://developer.paypal.com"
|
10
|
-
development:
|
11
|
-
<<: *default
|
12
|
-
|
13
|
-
with_certificate:
|
14
|
-
<<: *default
|
15
|
-
username: platfo_1255170694_biz_api1.gmail.com
|
16
|
-
password: 2DPPKUPKB7DQLXNR
|
17
|
-
signature:
|
18
|
-
cert_path: "spec/config/cert_key.pem"
|
19
|
-
app_id: APP-80W284485P519543T
|
20
|
-
soap_end_point: "https://api.sandbox.paypal.com/2.0/"
|
21
|
-
|
22
|
-
with_oauth_token:
|
23
|
-
<<: *default
|
24
|
-
token: H2kLxjm9lCxQdnOYxkH29I53TpZyIXez4GtHhAVGpiU3DiVTz5eNPQ
|
25
|
-
token_secret: MnZ-iPdDqGLEfQIuTIfUN4uK9lU
|
1
|
+
test: &default
|
2
|
+
username: jb-us-seller_api1.paypal.com
|
3
|
+
password: WX4WTU3S8MY44S7F
|
4
|
+
signature: AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy
|
5
|
+
app_id: APP-80W284485P519543T
|
6
|
+
http_timeout: 30
|
7
|
+
mode: sandbox
|
8
|
+
redirect_url: "https://www.sandbox.paypal.com/webscr&cmd="
|
9
|
+
dev_central_url: "https://developer.paypal.com"
|
10
|
+
development:
|
11
|
+
<<: *default
|
12
|
+
|
13
|
+
with_certificate:
|
14
|
+
<<: *default
|
15
|
+
username: platfo_1255170694_biz_api1.gmail.com
|
16
|
+
password: 2DPPKUPKB7DQLXNR
|
17
|
+
signature:
|
18
|
+
cert_path: "spec/config/cert_key.pem"
|
19
|
+
app_id: APP-80W284485P519543T
|
20
|
+
soap_end_point: "https://api.sandbox.paypal.com/2.0/"
|
21
|
+
|
22
|
+
with_oauth_token:
|
23
|
+
<<: *default
|
24
|
+
token: H2kLxjm9lCxQdnOYxkH29I53TpZyIXez4GtHhAVGpiU3DiVTz5eNPQ
|
25
|
+
token_secret: MnZ-iPdDqGLEfQIuTIfUN4uK9lU
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require 'bundler/setup'
|
2
|
-
|
3
|
-
Bundler.require :default, :test
|
4
|
-
PayPal::SDK::Core::Config.load('spec/config/paypal.yml', 'test')
|
5
|
-
|
6
|
-
require 'paypal-sdk-buttonmanager'
|
1
|
+
require 'bundler/setup'
|
2
|
+
|
3
|
+
Bundler.require :default, :test
|
4
|
+
PayPal::SDK::Core::Config.load('spec/config/paypal.yml', 'test')
|
5
|
+
|
6
|
+
require 'paypal-sdk-buttonmanager'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-buttonmanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.98.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: paypal-sdk-core
|
@@ -62,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
version: '0'
|
63
63
|
segments:
|
64
64
|
- 0
|
65
|
-
hash: -
|
65
|
+
hash: -700232081
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
segments:
|
73
73
|
- 0
|
74
|
-
hash: -
|
74
|
+
hash: -700232081
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
77
|
rubygems_version: 1.8.24
|