paypal-recurring 0.1.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +12 -0
- data/Gemfile.lock +32 -31
- data/README.rdoc +21 -5
- data/lib/paypal/recurring/base.rb +119 -4
- data/lib/paypal/recurring/notification.rb +15 -13
- data/lib/paypal/recurring/request.rb +38 -2
- data/lib/paypal/recurring/response.rb +4 -1
- data/lib/paypal/recurring/response/payment.rb +6 -5
- data/lib/paypal/recurring/response/profile.rb +4 -3
- data/lib/paypal/recurring/response/refund.rb +23 -0
- data/lib/paypal/recurring/version.rb +3 -3
- data/paypal-recurring.gemspec +7 -5
- data/spec/fixtures/checkout/failure.yml +33 -21
- data/spec/fixtures/checkout/success.yml +33 -21
- data/spec/fixtures/create_profile/failure.yml +33 -21
- data/spec/fixtures/create_profile/success.yml +33 -21
- data/spec/fixtures/details/cancelled.yml +33 -21
- data/spec/fixtures/details/failure.yml +33 -21
- data/spec/fixtures/details/success.yml +33 -21
- data/spec/fixtures/ipn/recurring_payment_skipped.json +30 -0
- data/spec/fixtures/notification/failure.yml +43 -25
- data/spec/fixtures/notification/success.yml +33 -15
- data/spec/fixtures/payment/failure.yml +33 -21
- data/spec/fixtures/payment/success.yml +33 -21
- data/spec/fixtures/profile/cancel/failure.yml +33 -21
- data/spec/fixtures/profile/cancel/success.yml +33 -21
- data/spec/fixtures/profile/failure.yml +33 -21
- data/spec/fixtures/profile/reactivate/failure.yml +33 -21
- data/spec/fixtures/profile/reactivate/success.yml +33 -21
- data/spec/fixtures/profile/success.yml +33 -21
- data/spec/fixtures/profile/suspend/failure.yml +33 -21
- data/spec/fixtures/profile/suspend/success.yml +33 -21
- 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/request_spec.rb +17 -0
- data/spec/paypal/response/checkout_details_spec.rb +7 -8
- data/spec/paypal/response/checkout_spec.rb +1 -1
- data/spec/paypal/response/create_recurring_profile_spec.rb +4 -4
- data/spec/paypal/response/manage_profile_spec.rb +11 -11
- data/spec/paypal/response/profile_spec.rb +9 -8
- data/spec/paypal/response/refund_spec.rb +33 -0
- data/spec/paypal/response/request_payment_spec.rb +4 -4
- data/spec/paypal/response/update_recurring_profile_spec.rb +47 -0
- data/spec/spec_helper.rb +8 -7
- metadata +135 -68
@@ -1,26 +1,38 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://api-3t.sandbox.paypal.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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&TOKEN=EC-08C2125544495393T&METHOD=GetExpressCheckoutDetails
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- PayPal::Recurring/0.1.8
|
14
|
+
content-type:
|
11
15
|
- application/x-www-form-urlencoded
|
12
|
-
|
13
|
-
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
14
20
|
code: 200
|
15
21
|
message: OK
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
-
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 03:46:33 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '1048'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
24
32
|
- text/plain; charset=utf-8
|
25
|
-
body:
|
26
|
-
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: TOKEN=EC%2d08C2125544495393T&BILLINGAGREEMENTACCEPTEDSTATUS=1&CHECKOUTSTATUS=PaymentActionNotInitiated&TIMESTAMP=2012%2d04%2d23T03%3a46%3a33Z&CORRELATIONID=2d6423eb9e64d&ACK=Success&VERSION=72%2e0&BUILD=2808426&EMAIL=fnando%2evieira%2bbr%40gmail%2ecom&PAYERID=D2U7M6PTMJBML&PAYERSTATUS=unverified&FIRSTNAME=Jos%c3%a9&LASTNAME=da%20Silva&COUNTRYCODE=BR&TAXIDTYPE=BR_CPF&TAXID=42519601140&CURRENCYCODE=BRL&AMT=9%2e00&SHIPPINGAMT=0%2e00&HANDLINGAMT=0%2e00&TAXAMT=0%2e00&DESC=Awesome%20%2d%20Monthly%20Subscription&NOTIFYURL=http%3a%2f%2fexample%2ecom%2fpaypal%2fipn&INSURANCEAMT=0%2e00&SHIPDISCAMT=0%2e00&PAYMENTREQUEST_0_CURRENCYCODE=BRL&PAYMENTREQUEST_0_AMT=9%2e00&PAYMENTREQUEST_0_SHIPPINGAMT=0%2e00&PAYMENTREQUEST_0_HANDLINGAMT=0%2e00&PAYMENTREQUEST_0_TAXAMT=0%2e00&PAYMENTREQUEST_0_DESC=Awesome%20%2d%20Monthly%20Subscription&PAYMENTREQUEST_0_NOTIFYURL=http%3a%2f%2fexample%2ecom%2fpaypal%2fipn&PAYMENTREQUEST_0_INSURANCEAMT=0%2e00&PAYMENTREQUEST_0_SHIPDISCAMT=0%2e00&PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED=false&PAYMENTREQUESTINFO_0_ERRORCODE=0
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 03:46:34 GMT
|
38
|
+
recorded_with: VCR 2.1.0
|
@@ -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
|
+
}
|
@@ -1,32 +1,50 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://www.sandbox.paypal.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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:
|
11
15
|
- application/x-www-form-urlencoded
|
12
|
-
|
13
|
-
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
14
20
|
code: 200
|
15
21
|
message: OK
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon,
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 03:00:03 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
|
22
|
-
-
|
23
|
-
-
|
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
|
24
34
|
- navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
|
25
|
-
- navlns=0.0; expires=Sun,
|
26
|
-
|
27
|
-
|
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:
|
28
42
|
- chunked
|
29
|
-
content-type:
|
43
|
+
content-type:
|
30
44
|
- text/html; charset=UTF-8
|
31
|
-
body:
|
32
|
-
|
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
|
@@ -1,32 +1,50 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://www.sandbox.paypal.com
|
6
|
-
body:
|
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
|
7
9
|
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
8
12
|
user-agent:
|
9
|
-
- PayPal::Recurring/0.1.
|
13
|
+
- PayPal::Recurring/0.1.8
|
10
14
|
content-type:
|
11
15
|
- application/x-www-form-urlencoded
|
12
|
-
|
13
|
-
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
14
20
|
code: 200
|
15
21
|
message: OK
|
16
22
|
headers:
|
17
23
|
date:
|
18
|
-
- Mon,
|
24
|
+
- Mon, 23 Apr 2012 02:59:59 GMT
|
19
25
|
server:
|
20
26
|
- Apache
|
27
|
+
x-frame-options:
|
28
|
+
- SAMEORIGIN
|
21
29
|
set-cookie:
|
22
|
-
- c9MWDuvPtT9GIMyPc3jwol1VSlO=
|
23
|
-
|
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
|
24
34
|
- navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
|
25
|
-
- navlns=0.0; expires=Sun,
|
26
|
-
|
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
|
27
41
|
transfer-encoding:
|
28
42
|
- chunked
|
29
43
|
content-type:
|
30
44
|
- text/html; charset=UTF-8
|
31
|
-
body:
|
32
|
-
|
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
|
@@ -1,26 +1,38 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://api-3t.sandbox.paypal.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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:
|
11
15
|
- application/x-www-form-urlencoded
|
12
|
-
|
13
|
-
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
14
20
|
code: 200
|
15
21
|
message: OK
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon,
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:06:53 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '569'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
24
32
|
- text/plain; charset=utf-8
|
25
|
-
body:
|
26
|
-
|
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
|
@@ -1,26 +1,38 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://api-3t.sandbox.paypal.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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:
|
11
15
|
- application/x-www-form-urlencoded
|
12
|
-
|
13
|
-
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
14
20
|
code: 200
|
15
21
|
message: OK
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon,
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:06:43 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '819'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
24
32
|
- text/plain; charset=utf-8
|
25
|
-
body:
|
26
|
-
|
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
|
@@ -1,26 +1,38 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://api-3t.sandbox.paypal.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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:
|
11
15
|
- application/x-www-form-urlencoded
|
12
|
-
|
13
|
-
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
14
20
|
code: 200
|
15
21
|
message: OK
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon,
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:00:55 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '387'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
24
32
|
- text/plain; charset=utf-8
|
25
|
-
body:
|
26
|
-
|
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
|
@@ -1,26 +1,38 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: https://api-3t.sandbox.paypal.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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:
|
11
15
|
- application/x-www-form-urlencoded
|
12
|
-
|
13
|
-
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response:
|
19
|
+
status:
|
14
20
|
code: 200
|
15
21
|
message: OK
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon,
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 04:00:48 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '133'
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
24
32
|
- text/plain; charset=utf-8
|
25
|
-
body:
|
26
|
-
|
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
|