paypal-sdk-rest 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -1
- data/lib/paypal-sdk/core/exceptions.rb +1 -1
- data/lib/paypal-sdk/rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9eae5ffc61d34b58e5ebf8dd292e10b41bf8a0d4
|
4
|
+
data.tar.gz: b9c144027cde5ef9653916733a3b41deaff5271c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dc05fba44917155e950ffdf1399d49d416d5141e80ccfdefe8a185b69065836764d320be68c6917a712aa42b6654d1ce850d0413f69063c2a2b42cb8e904b3a
|
7
|
+
data.tar.gz: c918da2cd9c69ff6bd60fe5427eb77842638d4ffc07941d807f880a0bbba0bd4b1b2a1ae35d7301d705b636eed04472099a016d6b66f1bef9d5c12a488bb4051
|
data/README.md
CHANGED
@@ -112,7 +112,6 @@ puts userinfo.to_hash
|
|
112
112
|
put tokeninfo.logout_url
|
113
113
|
```
|
114
114
|
|
115
|
-
|
116
115
|
## Create Payment
|
117
116
|
|
118
117
|
```ruby
|
@@ -227,3 +226,38 @@ userinfo = Userinfo.get("Replace with access_token")
|
|
227
226
|
logout_url = tokeninfo.logout_url
|
228
227
|
```
|
229
228
|
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/paypal/rest-api-sdk-ruby/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
229
|
+
|
230
|
+
|
231
|
+
## Payouts
|
232
|
+
|
233
|
+
To make Payouts, you should enable this option in your account at http://developer.paypal.com.
|
234
|
+
|
235
|
+
```ruby
|
236
|
+
Payout.new(
|
237
|
+
{
|
238
|
+
:sender_batch_header => {
|
239
|
+
:sender_batch_id => SecureRandom.hex(8),
|
240
|
+
:email_subject => 'You have a Payout!',
|
241
|
+
},
|
242
|
+
:items => [
|
243
|
+
{
|
244
|
+
:recipient_type => 'EMAIL',
|
245
|
+
:amount => {
|
246
|
+
:value => '1.0',
|
247
|
+
:currency => 'USD'
|
248
|
+
},
|
249
|
+
:note => 'Thanks for your patronage!',
|
250
|
+
:receiver => 'shirt-supplier-one@mail.com',
|
251
|
+
:sender_item_id => "2014031400023",
|
252
|
+
}
|
253
|
+
]
|
254
|
+
}
|
255
|
+
)
|
256
|
+
|
257
|
+
begin
|
258
|
+
@payout_batch = @payout.create
|
259
|
+
logger.info "Created Payout with [#{@payout_batch.batch_header.payout_batch_id}]"
|
260
|
+
rescue ResourceNotFound => err
|
261
|
+
logger.error @payout.error.inspect
|
262
|
+
end
|
263
|
+
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|