paypal-sdk-merchant 1.98.0 → 1.98.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +23 -10
- data/lib/paypal-sdk/merchant/version.rb +1 -1
- data/spec/config/paypal.yml +1 -2
- data/spec/merchant_spec.rb +1 -1
- metadata +8 -18
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NTliNTI4N2JkM2U2NDNlMjcyYmY4NDYzZDYxNWU3OGMxMGEyZGQ5Yg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MmMwZWE2MTQxNzk1OGQ0YmNhY2Y4YTJjMjg5NGRlZjZmNjc0NjI5Zg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MzBmYTc2ZTQ4NjgxNzI2NDAxOWJiY2Y2Mjk4MWMzZTVkMjU5ZjRkZmZiZjI1
|
10
|
+
YzA4ZmIxNDZjMzRiYWFiMDcyZThiMmIyMmQwZjZkN2M3ZDFiNGUzOGU5OWY1
|
11
|
+
M2Q5MWI1ZjAwOTkyODAyZDRkOTU5OGU0YWRjNzA0ZjZhNGIxZDA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzQyZDAxNGIwMzBkYWEyZDU4ZWY2MTU3OTM0NTA3NmMwYTI5YWYyOTIwNjFi
|
14
|
+
MGE1ZjM3YWUxNDdlNmVmMTRlYjhjNjFmZGY2OWY5YTM5YjM3MmJkNzI3ZDVi
|
15
|
+
ZDkwMjcwMTg5NGM4MjY0MzkzZjU2OTZiMjAyNDk2NjQ5ZWE1MmU=
|
data/README.md
CHANGED
@@ -115,22 +115,35 @@ To get response status:
|
|
115
115
|
|
116
116
|
```ruby
|
117
117
|
require 'paypal-sdk-merchant'
|
118
|
-
@api = PayPal::SDK::Merchant::API.new
|
118
|
+
@api = PayPal::SDK::Merchant::API.new(
|
119
|
+
:mode => "sandbox", # Set "live" for production
|
120
|
+
:app_id => "APP-80W284485P519543T",
|
121
|
+
:username => "jb-us-seller_api1.paypal.com",
|
122
|
+
:password => "WX4WTU3S8MY44S7F",
|
123
|
+
:signature => "AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy" )
|
119
124
|
|
120
125
|
# Build request object
|
121
|
-
@
|
122
|
-
|
123
|
-
|
126
|
+
@do_direct_payment = @api.build_do_direct_payment({
|
127
|
+
:DoDirectPaymentRequestDetails => {
|
128
|
+
:PaymentAction => "Sale",
|
129
|
+
:PaymentDetails => {
|
130
|
+
:OrderTotal => {
|
131
|
+
:currencyID => "USD",
|
132
|
+
:value => "1" },
|
133
|
+
:NotifyURL => "http://localhost:3000/samples/merchant/ipn_notify" },
|
134
|
+
:CreditCard => {
|
135
|
+
:CreditCardType => "Visa",
|
136
|
+
:CreditCardNumber => "4904202183894535",
|
137
|
+
:ExpMonth => 12,
|
138
|
+
:ExpYear => 2022,
|
139
|
+
:CVV2 => "962" } } })
|
124
140
|
|
125
141
|
# Make API call & get response
|
126
|
-
@
|
142
|
+
@do_direct_payment_response = @api.do_direct_payment(@do_direct_payment)
|
127
143
|
|
128
144
|
# Access Response
|
129
|
-
@
|
130
|
-
@
|
131
|
-
@transaction_search_response.CorrelationID
|
132
|
-
@transaction_search_response.Version
|
133
|
-
@transaction_search_response.Build
|
145
|
+
@do_direct_payment_response.Ack
|
146
|
+
@do_direct_payment_response.TransactionID
|
134
147
|
```
|
135
148
|
|
136
149
|
## Samples
|
data/spec/config/paypal.yml
CHANGED
data/spec/merchant_spec.rb
CHANGED
@@ -8,7 +8,7 @@ describe "Merchant" do
|
|
8
8
|
|
9
9
|
describe "Services" do
|
10
10
|
Actions = PayPal::SDK::Merchant::Services.instance_methods.select{|s| s =~ /^[A-Z]/ and s !~ /^Build/ } -
|
11
|
-
[ :CompleteRecoup, "CompleteRecoup" ]
|
11
|
+
[ :CompleteRecoup, "CompleteRecoup", :GetIncentiveEvaluation, "GetIncentiveEvaluation" ]
|
12
12
|
Actions.each do |service_method|
|
13
13
|
it "make empty request to #{service_method}" do
|
14
14
|
response = @client.send(service_method, {})
|
metadata
CHANGED
@@ -1,32 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-merchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.98.
|
5
|
-
prerelease:
|
4
|
+
version: 1.98.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- PayPal
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: paypal-sdk-core
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
19
|
+
version: 0.2.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
26
|
+
version: 0.2.0
|
30
27
|
description: The PayPal Merchant SDK provides Ruby APIs for processing payments, recurring
|
31
28
|
payments, subscriptions and transactions using PayPal's Merchant APIs, which include
|
32
29
|
Express Checkout, Recurring Payments, Direct Payment and Transactional APIs.
|
@@ -51,35 +48,28 @@ files:
|
|
51
48
|
- Rakefile
|
52
49
|
- README.md
|
53
50
|
- Gemfile
|
54
|
-
homepage: https://
|
51
|
+
homepage: https://developer.paypal.com
|
55
52
|
licenses: []
|
53
|
+
metadata: {}
|
56
54
|
post_install_message:
|
57
55
|
rdoc_options: []
|
58
56
|
require_paths:
|
59
57
|
- lib
|
60
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
59
|
requirements:
|
63
60
|
- - ! '>='
|
64
61
|
- !ruby/object:Gem::Version
|
65
62
|
version: '0'
|
66
|
-
segments:
|
67
|
-
- 0
|
68
|
-
hash: -656332369
|
69
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
64
|
requirements:
|
72
65
|
- - ! '>='
|
73
66
|
- !ruby/object:Gem::Version
|
74
67
|
version: '0'
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
hash: -656332369
|
78
68
|
requirements: []
|
79
69
|
rubyforge_project:
|
80
|
-
rubygems_version:
|
70
|
+
rubygems_version: 2.0.0
|
81
71
|
signing_key:
|
82
|
-
specification_version:
|
72
|
+
specification_version: 4
|
83
73
|
summary: PayPal Merchant SDK
|
84
74
|
test_files:
|
85
75
|
- spec/merchant_samples_spec.rb
|