didil-paypal-recurring 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +46 -0
- data/README.rdoc +144 -0
- data/Rakefile +5 -0
- data/docs/PP_NVPAPI_DeveloperGuide.pdf +0 -0
- data/docs/PP_WPP_IntegrationGuide.pdf +0 -0
- data/lib/paypal-recurring.rb +1 -0
- data/lib/paypal/recurring.rb +110 -0
- data/lib/paypal/recurring/base.rb +286 -0
- data/lib/paypal/recurring/cacert.pem +3987 -0
- data/lib/paypal/recurring/notification.rb +84 -0
- data/lib/paypal/recurring/request.rb +211 -0
- data/lib/paypal/recurring/response.rb +29 -0
- data/lib/paypal/recurring/response/base.rb +62 -0
- data/lib/paypal/recurring/response/checkout.rb +11 -0
- data/lib/paypal/recurring/response/details.rb +26 -0
- data/lib/paypal/recurring/response/manage_profile.rb +12 -0
- data/lib/paypal/recurring/response/payment.rb +24 -0
- data/lib/paypal/recurring/response/profile.rb +71 -0
- data/lib/paypal/recurring/response/refund.rb +23 -0
- data/lib/paypal/recurring/utils.rb +26 -0
- data/lib/paypal/recurring/version.rb +10 -0
- data/paypal-recurring.gemspec +27 -0
- data/spec/fixtures/checkout/failure.yml +38 -0
- data/spec/fixtures/checkout/success.yml +38 -0
- data/spec/fixtures/create_profile/failure.yml +38 -0
- data/spec/fixtures/create_profile/success.yml +38 -0
- data/spec/fixtures/details/cancelled.yml +38 -0
- data/spec/fixtures/details/failure.yml +38 -0
- data/spec/fixtures/details/success.yml +38 -0
- data/spec/fixtures/ipn/express_checkout.json +35 -0
- data/spec/fixtures/ipn/recurring_payment.json +44 -0
- data/spec/fixtures/ipn/recurring_payment_profile_created.json +31 -0
- data/spec/fixtures/ipn/recurring_payment_profile_created_with_initial_amount.json +33 -0
- data/spec/fixtures/ipn/recurring_payment_skipped.json +30 -0
- data/spec/fixtures/ipn/recurring_payment_with_initial_amount.json +44 -0
- data/spec/fixtures/notification/failure.yml +50 -0
- data/spec/fixtures/notification/success.yml +50 -0
- data/spec/fixtures/payment/failure.yml +38 -0
- data/spec/fixtures/payment/success.yml +38 -0
- data/spec/fixtures/profile/cancel/failure.yml +38 -0
- data/spec/fixtures/profile/cancel/success.yml +38 -0
- data/spec/fixtures/profile/failure.yml +38 -0
- data/spec/fixtures/profile/reactivate/failure.yml +38 -0
- data/spec/fixtures/profile/reactivate/success.yml +38 -0
- data/spec/fixtures/profile/success.yml +38 -0
- data/spec/fixtures/profile/suspend/failure.yml +38 -0
- data/spec/fixtures/profile/suspend/success.yml +38 -0
- data/spec/fixtures/refund/failure.yml +38 -0
- data/spec/fixtures/refund/success.yml +38 -0
- data/spec/fixtures/update_profile/failure.yml +38 -0
- data/spec/fixtures/update_profile/profile.yml +38 -0
- data/spec/fixtures/update_profile/success.yml +38 -0
- data/spec/paypal/notification_spec.rb +106 -0
- data/spec/paypal/recurring_spec.rb +81 -0
- data/spec/paypal/request_spec.rb +136 -0
- data/spec/paypal/response/base_spec.rb +19 -0
- data/spec/paypal/response/checkout_details_spec.rb +50 -0
- data/spec/paypal/response/checkout_spec.rb +32 -0
- data/spec/paypal/response/create_recurring_profile_spec.rb +41 -0
- data/spec/paypal/response/manage_profile_spec.rb +62 -0
- data/spec/paypal/response/profile_spec.rb +43 -0
- data/spec/paypal/response/refund_spec.rb +33 -0
- data/spec/paypal/response/request_payment_spec.rb +35 -0
- data/spec/paypal/response/update_recurring_profile_spec.rb +48 -0
- data/spec/spec_helper.rb +27 -0
- metadata +209 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
{
|
2
|
+
"mc_gross":"9.00",
|
3
|
+
"period_type":" Regular",
|
4
|
+
"outstanding_balance":"0.00",
|
5
|
+
"next_payment_date":"03:00:00 Jul 06, 2011 PDT",
|
6
|
+
"protection_eligibility":"Ineligible",
|
7
|
+
"payment_cycle":"Daily",
|
8
|
+
"tax":"0.00",
|
9
|
+
"payer_id":"6KAQNBYBZ6KAC",
|
10
|
+
"payment_date":"03:06:59 Jul 05, 2011 PDT",
|
11
|
+
"payment_status":"Completed",
|
12
|
+
"product_name":"Awesome - Monthly Subscription",
|
13
|
+
"charset":"windows-1252",
|
14
|
+
"rp_invoice_id":"1234",
|
15
|
+
"recurring_payment_id":"I-E9EJKE50EPPY",
|
16
|
+
"first_name":"Test",
|
17
|
+
"mc_fee":"0.56",
|
18
|
+
"notify_version":"3.1",
|
19
|
+
"amount_per_cycle":"9.00",
|
20
|
+
"payer_status":"verified",
|
21
|
+
"currency_code":"USD",
|
22
|
+
"business":"seller_1308793919_biz_api1.simplesideias.com.br",
|
23
|
+
"verify_sign":"A31F-vcNTWfrBDr18m0ZsQO28jDTAvPYHS7RmO4dZDD-ObUm6mgY-vS1",
|
24
|
+
"payer_email":"buyer_1309779460_per@simplesideias.com.br",
|
25
|
+
"initial_payment_amount":"0.00",
|
26
|
+
"profile_status":"Active",
|
27
|
+
"amount":"9.00",
|
28
|
+
"txn_id":"8UT11014H0627171P",
|
29
|
+
"payment_type":"instant",
|
30
|
+
"last_name":"User",
|
31
|
+
"receiver_email":"seller_1308793919_biz_api1.simplesideias.com.br",
|
32
|
+
"payment_fee":"0.56",
|
33
|
+
"receiver_id":"GSZCRUB62BL5L",
|
34
|
+
"txn_type":"recurring_payment",
|
35
|
+
"mc_currency":"USD",
|
36
|
+
"residence_country":"US",
|
37
|
+
"test_ipn":"1",
|
38
|
+
"transaction_subject":"",
|
39
|
+
"payment_gross":"9.00",
|
40
|
+
"shipping":"0.00",
|
41
|
+
"product_type":"1",
|
42
|
+
"time_created":"20:37:06 Jul 04, 2011 PDT",
|
43
|
+
"ipn_track_id":"ZuDCTZrTVSGEOmiIJmdZ8Q"
|
44
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"payment_cycle":"Daily",
|
3
|
+
"txn_type":"recurring_payment_profile_created",
|
4
|
+
"last_name":"User",
|
5
|
+
"next_payment_date":"03:00:00 Jul 05, 2011 PDT",
|
6
|
+
"residence_country":"US",
|
7
|
+
"initial_payment_amount":"0.00",
|
8
|
+
"rp_invoice_id":"1234",
|
9
|
+
"currency_code":"USD",
|
10
|
+
"time_created":"20:37:06 Jul 04, 2011 PDT",
|
11
|
+
"verify_sign":"AKAZgvqH1r0IxFcG2KYlwYC.bd7rAhHiMcfsQu1D8ouxLCbt2THiAy6E",
|
12
|
+
"period_type":" Regular",
|
13
|
+
"payer_status":"verified",
|
14
|
+
"test_ipn":"1",
|
15
|
+
"tax":"0.00",
|
16
|
+
"payer_email":"buyer_1309779460_per@simplesideias.com.br",
|
17
|
+
"first_name":"Test",
|
18
|
+
"receiver_email":"seller_1308793919_biz_api1.simplesideias.com.br",
|
19
|
+
"payer_id":"6KAQNBYBZ6KAC",
|
20
|
+
"product_type":"1",
|
21
|
+
"shipping":"0.00",
|
22
|
+
"amount_per_cycle":"9.00",
|
23
|
+
"profile_status":"Active",
|
24
|
+
"charset":"windows-1252",
|
25
|
+
"notify_version":"3.1",
|
26
|
+
"amount":"9.00",
|
27
|
+
"outstanding_balance":"0.00",
|
28
|
+
"recurring_payment_id":"I-E9EJKE50EPPY",
|
29
|
+
"product_name":"Awesome - Monthly Subscription",
|
30
|
+
"ipn_track_id":"aWXcwC-7TDo7InmzVuuRrQ"
|
31
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"payment_cycle":"Daily",
|
3
|
+
"txn_type":"recurring_payment_profile_created",
|
4
|
+
"last_name":"User",
|
5
|
+
"initial_payment_status":"Completed",
|
6
|
+
"next_payment_date":"03:00:00 Jul 05, 2011 PDT",
|
7
|
+
"residence_country":"US",
|
8
|
+
"initial_payment_amount":"9.00",
|
9
|
+
"rp_invoice_id":"1234",
|
10
|
+
"currency_code":"USD",
|
11
|
+
"time_created":"05:40:02 Jul 05, 2011 PDT",
|
12
|
+
"verify_sign":"AhkQm37iumIaDqpU.GmMvkOH76DtA5R4Y1kgjo4B5u43tAt9yNOaY9H5",
|
13
|
+
"period_type":" Regular",
|
14
|
+
"payer_status":"verified",
|
15
|
+
"test_ipn":"1",
|
16
|
+
"tax":"0.00",
|
17
|
+
"payer_email":"buyer_1309779460_per@simplesideias.com.br",
|
18
|
+
"first_name":"Test",
|
19
|
+
"receiver_email":"seller_1309778833_biz@simplesideias.com.br",
|
20
|
+
"payer_id":"6KAQNBYBZ6KAC",
|
21
|
+
"product_type":"1",
|
22
|
+
"initial_payment_txn_id":"13V89154YA849712L",
|
23
|
+
"shipping":"0.00",
|
24
|
+
"amount_per_cycle":"9.00",
|
25
|
+
"profile_status":"Active",
|
26
|
+
"charset":"windows-1252",
|
27
|
+
"notify_version":"3.1",
|
28
|
+
"amount":"9.00",
|
29
|
+
"outstanding_balance":"0.00",
|
30
|
+
"recurring_payment_id":"I-NYWX42K14ES6",
|
31
|
+
"product_name":"Awesome - Monthly Subscription",
|
32
|
+
"ipn_track_id":"mLafq7gjIItS.n58DnlbIg"
|
33
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"payment_cycle": "Monthly",
|
3
|
+
"txn_type": "recurring_payment_skipped",
|
4
|
+
"last_name": "User",
|
5
|
+
"next_payment_date": "03:00:00 Oct 24, 2011 PDT",
|
6
|
+
"residence_country": "US",
|
7
|
+
"initial_payment_amount": "0.00",
|
8
|
+
"rp_invoice_id": "1234",
|
9
|
+
"currency_code": "USD",
|
10
|
+
"time_created": "05:56:05 Aug 15, 2011 PDT",
|
11
|
+
"verify_sign": "AzZjNXz176XLeyqj-36Txu9zkwePA21GR.T0rcMbqoEJe4L5v4.6d4F1",
|
12
|
+
"period_type": " Regular",
|
13
|
+
"payer_status": "verified",
|
14
|
+
"tax": "0.00",
|
15
|
+
"payer_email": "buyer_1309779460_per@simplesideias.com.br",
|
16
|
+
"first_name": "Test",
|
17
|
+
"receiver_email": "seller_1309778833_biz@simplesideias.com.br",
|
18
|
+
"payer_id": "BVK8Y2KBNGLOS",
|
19
|
+
"product_type": "1",
|
20
|
+
"shipping": "0.00",
|
21
|
+
"amount_per_cycle": "9.00",
|
22
|
+
"profile_status": "Active",
|
23
|
+
"charset": "UTF-8",
|
24
|
+
"notify_version": "3.4",
|
25
|
+
"amount": "9.00",
|
26
|
+
"outstanding_balance": "0.00",
|
27
|
+
"recurring_payment_id": "I-NYWX42K14ES6",
|
28
|
+
"product_name": "Awesome - Monthly Subscription",
|
29
|
+
"ipn_track_id": "kmiVwXjypSUWUOeF0F1URA"
|
30
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
{
|
2
|
+
"mc_gross":"9.00",
|
3
|
+
"period_type":" Regular",
|
4
|
+
"outstanding_balance":"0.00",
|
5
|
+
"next_payment_date":"03:00:00 Jul 06, 2011 PDT",
|
6
|
+
"protection_eligibility":"Ineligible",
|
7
|
+
"payment_cycle":"Daily",
|
8
|
+
"tax":"0.00",
|
9
|
+
"payer_id":"6KAQNBYBZ6KAC",
|
10
|
+
"payment_date":"05:40:47 Jul 05, 2011 PDT",
|
11
|
+
"payment_status":"Completed",
|
12
|
+
"product_name":"Awesome - Monthly Subscription",
|
13
|
+
"charset":"windows-1252",
|
14
|
+
"rp_invoice_id":"1234",
|
15
|
+
"recurring_payment_id":"I-NYWX42K14ES6",
|
16
|
+
"first_name":"Test",
|
17
|
+
"mc_fee":"0.56",
|
18
|
+
"notify_version":"3.1",
|
19
|
+
"amount_per_cycle":"9.00",
|
20
|
+
"payer_status":"verified",
|
21
|
+
"currency_code":"USD",
|
22
|
+
"business":"seller_1309778833_biz@simplesideias.com.br",
|
23
|
+
"verify_sign":"AY-Nybk0IAfkhZd8.NnjoCJhyPXTAMk10-hj23D6C6FuZpclLam-uxRI",
|
24
|
+
"payer_email":"buyer_1309779460_per@simplesideias.com.br",
|
25
|
+
"initial_payment_amount":"9.00",
|
26
|
+
"profile_status":"Active",
|
27
|
+
"amount":"9.00",
|
28
|
+
"txn_id":"8C0558302N704203M",
|
29
|
+
"payment_type":"instant",
|
30
|
+
"last_name":"User",
|
31
|
+
"receiver_email":"seller_1309778833_biz@simplesideias.com.br",
|
32
|
+
"payment_fee":"0.56",
|
33
|
+
"receiver_id":"GSZCRUB62BL5L",
|
34
|
+
"txn_type":"recurring_payment",
|
35
|
+
"mc_currency":"USD",
|
36
|
+
"residence_country":"US",
|
37
|
+
"test_ipn":"1",
|
38
|
+
"transaction_subject":"",
|
39
|
+
"payment_gross":"9.00",
|
40
|
+
"shipping":"0.00",
|
41
|
+
"product_type":"1",
|
42
|
+
"time_created":"05:40:02 Jul 05, 2011 PDT",
|
43
|
+
"ipn_track_id":"kmiVwXjypSUWUOeF0F1URA"
|
44
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_notify-validate
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: cmd=_notify-validate
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- PayPal::Recurring/0.1.8
|
14
|
+
content-type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 03:00:03 GMT
|
25
|
+
server:
|
26
|
+
- Apache
|
27
|
+
x-frame-options:
|
28
|
+
- SAMEORIGIN
|
29
|
+
set-cookie:
|
30
|
+
- c9MWDuvPtT9GIMyPc3jwol1VSlO=phiV3ZAWvCkZSenfDn1tp5SJRGYAY1V1oXZXt-oQMLjTRqt68RVoOxNBcZgxuINkTESymvIqEmaapr8-2zon9XoeH-ehyhlJbZX6JoYeFdJUbu4h9hvZmOqepdkOaZWfGkQYTG%7cdgcesLmy-LDirS8qpI0_SY5acTNGUmVqz9USdhYSfIaD4vAyicZW0hiNfDsS5RMEO4KAaG%7cfG9ex3VMD0NUmpCKlPC1URU9q7KZPbJyYkc897cvk-DO4OD7pMRo0Jn412SUgu6ZYWH8Nm%7c1335150004;
|
31
|
+
domain=.paypal.com; path=/; Secure; HttpOnly
|
32
|
+
- cookie_check=yes; expires=Thu, 21-Apr-2022 03:00:04 GMT; domain=.paypal.com;
|
33
|
+
path=/; Secure; HttpOnly
|
34
|
+
- navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
|
35
|
+
- navlns=0.0; expires=Sun, 18-Apr-2032 03:00:04 GMT; domain=.paypal.com; path=/;
|
36
|
+
Secure; HttpOnly
|
37
|
+
- Apache=10.72.109.11.1335150003601166; path=/; expires=Wed, 16-Apr-42 03:00:03
|
38
|
+
GMT
|
39
|
+
connection:
|
40
|
+
- close
|
41
|
+
transfer-encoding:
|
42
|
+
- chunked
|
43
|
+
content-type:
|
44
|
+
- text/html; charset=UTF-8
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: INVALID
|
48
|
+
http_version: '1.1'
|
49
|
+
recorded_at: Mon, 23 Apr 2012 03:00:04 GMT
|
50
|
+
recorded_with: VCR 2.1.0
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_notify-validate
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: test_ipn=1&payment_type=echeck&payment_date=06%3A16%3A11+Jun+27%2C+2011+PDT&payment_status=Completed&pending_reason=echeck&address_status=confirmed&payer_status=verified&first_name=John&last_name=Smith&payer_email=buyer%40paypalsandbox.com&payer_id=TESTBUYERID01&address_name=John+Smith&address_country=United+States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San+Jose&address_street=123%2C+any+street&business=seller%40paypalsandbox.com&receiver_email=seller%40paypalsandbox.com&receiver_id=TESTSELLERID1&residence_country=US&item_name=something&item_number=AK-1234&quantity=1&shipping=3.04&tax=2.02&mc_currency=USD&mc_fee=0.44&mc_gross=12.34&txn_type=web_accept&txn_id=116271316¬ify_version=2.1&custom=xyz123&invoice=abc1234&charset=windows-1252&verify_sign=A12AYqq6LElPcpXaQx48GiroLHnMAoQPnK0Z7aRwXUOpg1GfDaE15mFN&cmd=_notify-validate
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- PayPal::Recurring/0.1.8
|
14
|
+
content-type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 02:59:59 GMT
|
25
|
+
server:
|
26
|
+
- Apache
|
27
|
+
x-frame-options:
|
28
|
+
- SAMEORIGIN
|
29
|
+
set-cookie:
|
30
|
+
- c9MWDuvPtT9GIMyPc3jwol1VSlO=00kAPbDwhPKB9nwR_1IoAiXiS87HGgqlFvdD2H0t93cicF_W5MervrhdJQqaf1kmA7MF8BJaF7X3smTuIkqh3Y6VbVGWndlE8loQQzpxoYfn3Wum0buzOtrzmQ0RIPpg5ubZj0%7c-nsDtRpfNurTlYfejKp-xDy8K7FIu2hCS5-BntoBTMoIthvpiZ9_z58Ai9WW3VWdWnRnFW%7cn_p4wTyrizXlrl93-Uw168RpfgURCSDTpHPgDfK__M6BS2TLwtwHfWUfM_ZWhgl4eaGm5W%7c1335150000;
|
31
|
+
domain=.paypal.com; path=/; Secure; HttpOnly
|
32
|
+
- cookie_check=yes; expires=Thu, 21-Apr-2022 03:00:00 GMT; domain=.paypal.com;
|
33
|
+
path=/; Secure; HttpOnly
|
34
|
+
- navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
|
35
|
+
- navlns=0.0; expires=Sun, 18-Apr-2032 03:00:00 GMT; domain=.paypal.com; path=/;
|
36
|
+
Secure; HttpOnly
|
37
|
+
- Apache=10.72.109.11.1335149999304854; path=/; expires=Wed, 16-Apr-42 02:59:59
|
38
|
+
GMT
|
39
|
+
connection:
|
40
|
+
- close
|
41
|
+
transfer-encoding:
|
42
|
+
- chunked
|
43
|
+
content-type:
|
44
|
+
- text/html; charset=UTF-8
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: VERIFIED
|
48
|
+
http_version: '1.1'
|
49
|
+
recorded_at: Mon, 23 Apr 2012 03:00:00 GMT
|
50
|
+
recorded_with: VCR 2.1.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-3t.sandbox.paypal.com/nvp
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: USER=fnando.vieira%2Bseller_api1.gmail.com&PWD=PRTZZX6JDACB95SA&SIGNATURE=AJnjtLN0ozBP-BF2ZJrj5sfbmGAxAnf5tev1-MgK5Z8IASmtj-Fw.5pt&VERSION=72.0&PAYMENTREQUEST_0_PAYMENTACTION=Sale&METHOD=DoExpressCheckoutPayment
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- PayPal::Recurring/0.1.8
|
14
|
+
content-type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:06:53 GMT
|
25
|
+
server:
|
26
|
+
- Apache
|
27
|
+
content-length:
|
28
|
+
- '569'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
32
|
+
- text/plain; charset=utf-8
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: TIMESTAMP=2012%2d04%2d23T04%3a06%3a54Z&CORRELATIONID=df5373a627ea4&ACK=Failure&VERSION=72%2e0&BUILD=2808426&L_ERRORCODE0=10400&L_ERRORCODE1=10406&L_SHORTMESSAGE0=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_SHORTMESSAGE1=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_LONGMESSAGE0=Order%20total%20is%20missing%2e&L_LONGMESSAGE1=The%20PayerID%20value%20is%20invalid%2e&L_SEVERITYCODE0=Error&L_SEVERITYCODE1=Error
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 04:06:54 GMT
|
38
|
+
recorded_with: VCR 2.1.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-3t.sandbox.paypal.com/nvp
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: USER=fnando.vieira%2Bseller_api1.gmail.com&PWD=PRTZZX6JDACB95SA&SIGNATURE=AJnjtLN0ozBP-BF2ZJrj5sfbmGAxAnf5tev1-MgK5Z8IASmtj-Fw.5pt&VERSION=72.0&PAYMENTREQUEST_0_AMT=9.00&AMT=9.00&PAYMENTREQUEST_0_CURRENCYCODE=BRL&CURRENCYCODE=BRL&DESC=Awesome+-+Monthly+Subscription&PAYMENTREQUEST_0_DESC=Awesome+-+Monthly+Subscription&L_BILLINGAGREEMENTDESCRIPTION0=Awesome+-+Monthly+Subscription&PAYERID=D2U7M6PTMJBML&TOKEN=EC-7DE19186NP195863W&PAYMENTREQUEST_0_PAYMENTACTION=Sale&METHOD=DoExpressCheckoutPayment
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- PayPal::Recurring/0.1.8
|
14
|
+
content-type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:06:43 GMT
|
25
|
+
server:
|
26
|
+
- Apache
|
27
|
+
content-length:
|
28
|
+
- '819'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
32
|
+
- text/plain; charset=utf-8
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: TOKEN=EC%2d7DE19186NP195863W&SUCCESSPAGEREDIRECTREQUESTED=false&TIMESTAMP=2012%2d04%2d23T04%3a06%3a50Z&CORRELATIONID=c02dbf629c3ba&ACK=Success&VERSION=72%2e0&BUILD=2808426&INSURANCEOPTIONSELECTED=false&SHIPPINGOPTIONISDEFAULT=false&PAYMENTINFO_0_TRANSACTIONID=4CG10595LH1072406&PAYMENTINFO_0_TRANSACTIONTYPE=expresscheckout&PAYMENTINFO_0_PAYMENTTYPE=instant&PAYMENTINFO_0_ORDERTIME=2012%2d04%2d23T04%3a06%3a48Z&PAYMENTINFO_0_AMT=9%2e00&PAYMENTINFO_0_FEEAMT=0%2e71&PAYMENTINFO_0_TAXAMT=0%2e00&PAYMENTINFO_0_CURRENCYCODE=BRL&PAYMENTINFO_0_PAYMENTSTATUS=Completed&PAYMENTINFO_0_PENDINGREASON=None&PAYMENTINFO_0_REASONCODE=None&PAYMENTINFO_0_PROTECTIONELIGIBILITY=Ineligible&PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE=None&PAYMENTINFO_0_SECUREMERCHANTACCOUNTID=F2RM85WS56YX2&PAYMENTINFO_0_ERRORCODE=0&PAYMENTINFO_0_ACK=Success
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 04:06:50 GMT
|
38
|
+
recorded_with: VCR 2.1.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-3t.sandbox.paypal.com/nvp
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: USER=fnando.vieira%2Bseller_api1.gmail.com&PWD=PRTZZX6JDACB95SA&SIGNATURE=AJnjtLN0ozBP-BF2ZJrj5sfbmGAxAnf5tev1-MgK5Z8IASmtj-Fw.5pt&VERSION=72.0&ACTION=Cancel&PROFILEID=I-W4FNTE6EXJ2W&METHOD=ManageRecurringPaymentsProfileStatus
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- PayPal::Recurring/0.1.8
|
14
|
+
content-type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:00:55 GMT
|
25
|
+
server:
|
26
|
+
- Apache
|
27
|
+
content-length:
|
28
|
+
- '387'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
32
|
+
- text/plain; charset=utf-8
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: TIMESTAMP=2012%2d04%2d23T04%3a00%3a56Z&CORRELATIONID=7412073140ac0&ACK=Failure&VERSION=72%2e0&BUILD=2764190&L_ERRORCODE0=11556&L_SHORTMESSAGE0=Invalid%20profile%20status%20for%20cancel%20action%3b%20profile%20should%20be%20active%20or%20suspended&L_LONGMESSAGE0=Invalid%20profile%20status%20for%20cancel%20action%3b%20profile%20should%20be%20active%20or%20suspended&L_SEVERITYCODE0=Error
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 04:00:56 GMT
|
38
|
+
recorded_with: VCR 2.1.0
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-3t.sandbox.paypal.com/nvp
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: USER=fnando.vieira%2Bseller_api1.gmail.com&PWD=PRTZZX6JDACB95SA&SIGNATURE=AJnjtLN0ozBP-BF2ZJrj5sfbmGAxAnf5tev1-MgK5Z8IASmtj-Fw.5pt&VERSION=72.0&ACTION=Cancel&PROFILEID=I-W4FNTE6EXJ2W&METHOD=ManageRecurringPaymentsProfileStatus
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- PayPal::Recurring/0.1.8
|
14
|
+
content-type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:00:48 GMT
|
25
|
+
server:
|
26
|
+
- Apache
|
27
|
+
content-length:
|
28
|
+
- '133'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
32
|
+
- text/plain; charset=utf-8
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: PROFILEID=I%2dW4FNTE6EXJ2W&TIMESTAMP=2012%2d04%2d23T04%3a00%3a53Z&CORRELATIONID=91badb3af43a&ACK=Success&VERSION=72%2e0&BUILD=2764190
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 04:00:53 GMT
|
38
|
+
recorded_with: VCR 2.1.0
|