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.
Files changed (48) hide show
  1. data/.gitignore +12 -0
  2. data/Gemfile.lock +32 -31
  3. data/README.rdoc +21 -5
  4. data/lib/paypal/recurring/base.rb +119 -4
  5. data/lib/paypal/recurring/notification.rb +15 -13
  6. data/lib/paypal/recurring/request.rb +38 -2
  7. data/lib/paypal/recurring/response.rb +4 -1
  8. data/lib/paypal/recurring/response/payment.rb +6 -5
  9. data/lib/paypal/recurring/response/profile.rb +4 -3
  10. data/lib/paypal/recurring/response/refund.rb +23 -0
  11. data/lib/paypal/recurring/version.rb +3 -3
  12. data/paypal-recurring.gemspec +7 -5
  13. data/spec/fixtures/checkout/failure.yml +33 -21
  14. data/spec/fixtures/checkout/success.yml +33 -21
  15. data/spec/fixtures/create_profile/failure.yml +33 -21
  16. data/spec/fixtures/create_profile/success.yml +33 -21
  17. data/spec/fixtures/details/cancelled.yml +33 -21
  18. data/spec/fixtures/details/failure.yml +33 -21
  19. data/spec/fixtures/details/success.yml +33 -21
  20. data/spec/fixtures/ipn/recurring_payment_skipped.json +30 -0
  21. data/spec/fixtures/notification/failure.yml +43 -25
  22. data/spec/fixtures/notification/success.yml +33 -15
  23. data/spec/fixtures/payment/failure.yml +33 -21
  24. data/spec/fixtures/payment/success.yml +33 -21
  25. data/spec/fixtures/profile/cancel/failure.yml +33 -21
  26. data/spec/fixtures/profile/cancel/success.yml +33 -21
  27. data/spec/fixtures/profile/failure.yml +33 -21
  28. data/spec/fixtures/profile/reactivate/failure.yml +33 -21
  29. data/spec/fixtures/profile/reactivate/success.yml +33 -21
  30. data/spec/fixtures/profile/success.yml +33 -21
  31. data/spec/fixtures/profile/suspend/failure.yml +33 -21
  32. data/spec/fixtures/profile/suspend/success.yml +33 -21
  33. data/spec/fixtures/refund/failure.yml +38 -0
  34. data/spec/fixtures/refund/success.yml +38 -0
  35. data/spec/fixtures/update_profile/failure.yml +38 -0
  36. data/spec/fixtures/update_profile/profile.yml +38 -0
  37. data/spec/fixtures/update_profile/success.yml +38 -0
  38. data/spec/paypal/request_spec.rb +17 -0
  39. data/spec/paypal/response/checkout_details_spec.rb +7 -8
  40. data/spec/paypal/response/checkout_spec.rb +1 -1
  41. data/spec/paypal/response/create_recurring_profile_spec.rb +4 -4
  42. data/spec/paypal/response/manage_profile_spec.rb +11 -11
  43. data/spec/paypal/response/profile_spec.rb +9 -8
  44. data/spec/paypal/response/refund_spec.rb +33 -0
  45. data/spec/paypal/response/request_payment_spec.rb +4 -4
  46. data/spec/paypal/response/update_recurring_profile_spec.rb +47 -0
  47. data/spec/spec_helper.rb +8 -7
  48. metadata +135 -68
@@ -1,26 +1,38 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://api-3t.sandbox.paypal.com:443/nvp
6
- body: USER=seller_1308793919_biz_api1.simplesideias.com.br&PWD=1308793931&SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AzaB6TzXx5amObyEghjU13.0av2Y&VERSION=72.0&TOKEN=EC-7B902269MT603740W&METHOD=GetExpressCheckoutDetails
7
- headers:
8
- user-agent:
9
- - PayPal::Recurring/0.1.0
10
- content-type:
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
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
- headers:
17
- date:
18
- - Sun, 26 Jun 2011 23:21:45 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 03:46:33 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "1013"
23
- content-type:
27
+ content-length:
28
+ - '1048'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: TOKEN=EC%2d7B902269MT603740W&BILLINGAGREEMENTACCEPTEDSTATUS=1&CHECKOUTSTATUS=PaymentActionNotInitiated&TIMESTAMP=2011%2d06%2d26T23%3a21%3a45Z&CORRELATIONID=3013e52c8b3d2&ACK=Success&VERSION=72%2e0&BUILD=1936884&EMAIL=buyer_1308979708_per%40simplesideias%2ecom%2ebr&PAYERID=WTTS5KC2T46YU&PAYERSTATUS=verified&FIRSTNAME=Test&LASTNAME=User&COUNTRYCODE=US&CURRENCYCODE=USD&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=USD&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
26
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://www.sandbox.paypal.com:443/cgi-bin/webscr?cmd=_notify-validate
6
- body: cmd=_notify-validate
7
- headers:
8
- user-agent:
9
- - PayPal::Recurring/0.1.0
10
- content-type:
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
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
- headers:
17
- date:
18
- - Mon, 27 Jun 2011 17:39:42 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 03:00:03 GMT
25
+ server:
20
26
  - Apache
21
- set-cookie:
22
- - c9MWDuvPtT9GIMyPc3jwol1VSlO=FYMA2gxaecqXl8Q9SSeevuaQcqfcQcwNGw_shFaqV4wYiWT3ZUcQ4O8NLvXqevPJfliR0yse8Z4bzZ8A37MQKM6Q_ci6wnYOkfGZSxZYa_hNLMvR6QHnGyW6u94YxhYQpgu0VG%7cySXso7WZVjU8pXiTJS488DAO3YqW5S6DsAZMY8TN22H5J8gW1As5DlqX1pm60R5dWee5wm%7cdMLFsFZz_xjN2U4nbQ71pdvMUEch5_rqq4NReBSNMz7j3ry9JJhQ1J0X6pqjinKs-kO5NG%7c1309196387; domain=.paypal.com; path=/; Secure; HttpOnly
23
- - cookie_check=yes; expires=Thu, 24-Jun-2021 17:39:47 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
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, 22-Jun-2031 17:39:47 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
26
- - Apache=10.72.109.11.1309196382543853; path=/; expires=Wed, 19-Jun-41 17:39:42 GMT
27
- transfer-encoding:
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: INVALID
32
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://www.sandbox.paypal.com:443/cgi-bin/webscr?cmd=_notify-validate
6
- body: test_ipn=1&payment_type=echeck&payment_date=06%3a16%3a11%20Jun%2027%2c%202011%20PDT&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%20Smith&address_country=United%20States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San%20Jose&address_street=123%2c%20any%20street&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&notify_version=2.1&custom=xyz123&invoice=abc1234&charset=windows-1252&verify_sign=AvgHA1TpBJYQMa-x3XsZYuQd7MkKAMUFy7f2a9G4UNFmNHHXGnfAFi3l&cmd=_notify-validate
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&notify_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.0
13
+ - PayPal::Recurring/0.1.8
10
14
  content-type:
11
15
  - application/x-www-form-urlencoded
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
22
  headers:
17
23
  date:
18
- - Mon, 27 Jun 2011 17:37:09 GMT
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=EShGvdSJTkQTmhIi4jIAvW9REPYfLjRSo3BqPdRvBymVBvHIai4jnMHE9UzQDrz7FgAtLCUw0V0VroudhtcfoaNLca2TZq61mMSzEHPHgwAj5ON8rmHCr_IjY_AkKI885AFFLW%7c-PiLEQg9LK_E6xg7biKrMLHv97B5cP5yT2R1l6g_ZNq-3SDSCAm-9VQdvpJSnrGNtfsrrG%7cvdBU3UXz8sDrfFIOKP_zwmNkSm8nNcKCATxNvMpGb4VOdGI4Sjia0YCorXMBWxpjKuAip0%7c1309196230; domain=.paypal.com; path=/; Secure; HttpOnly
23
- - cookie_check=yes; expires=Thu, 24-Jun-2021 17:37:10 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
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, 22-Jun-2031 17:37:10 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
26
- - Apache=10.72.109.11.1309196229102128; path=/; expires=Wed, 19-Jun-41 17:37:09 GMT
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: VERIFIED
32
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://api-3t.sandbox.paypal.com:443/nvp
6
- body: USER=seller_1308793919_biz_api1.simplesideias.com.br&PWD=1308793931&SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AzaB6TzXx5amObyEghjU13.0av2Y&VERSION=72.0&PAYMENTREQUEST_0_AMT=9.00&AMT=9.00&PAYMENTREQUEST_0_CURRENCYCODE=USD&CURRENCYCODE=USD&DESC=Awesome%20-%20Monthly%20Subscription&PAYMENTREQUEST_0_DESC=Awesome%20-%20Monthly%20Subscription&L_BILLINGAGREEMENTDESCRIPTION0=Awesome%20-%20Monthly%20Subscription&PAYERID=WTTS5KC2T46YU&TOKEN=EC-7B902269MT603740W&PAYMENTREQUEST_0_PAYMENTACTION=Sale&METHOD=DoExpressCheckoutPayment
7
- headers:
8
- user-agent:
9
- - PayPal::Recurring/0.1.0
10
- content-type:
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
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
- headers:
17
- date:
18
- - Mon, 27 Jun 2011 00:44:51 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:06:53 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "338"
23
- content-type:
27
+ content-length:
28
+ - '569'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: TIMESTAMP=2011%2d06%2d27T00%3a44%3a52Z&CORRELATIONID=2b242eadf3e74&ACK=Failure&VERSION=72%2e0&BUILD=1936884&L_ERRORCODE0=10411&L_SHORTMESSAGE0=This%20Express%20Checkout%20session%20has%20expired%2e&L_LONGMESSAGE0=This%20Express%20Checkout%20session%20has%20expired%2e%20%20Token%20value%20is%20no%20longer%20valid%2e&L_SEVERITYCODE0=Error
26
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://api-3t.sandbox.paypal.com:443/nvp
6
- body: USER=seller_1308793919_biz_api1.simplesideias.com.br&PWD=1308793931&SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AzaB6TzXx5amObyEghjU13.0av2Y&VERSION=72.0&PAYMENTREQUEST_0_AMT=9.00&AMT=9.00&PAYMENTREQUEST_0_CURRENCYCODE=USD&CURRENCYCODE=USD&DESC=Awesome%20-%20Monthly%20Subscription&PAYMENTREQUEST_0_DESC=Awesome%20-%20Monthly%20Subscription&L_BILLINGAGREEMENTDESCRIPTION0=Awesome%20-%20Monthly%20Subscription&PAYERID=WTTS5KC2T46YU&TOKEN=EC-7A593227AC789800N&PAYMENTREQUEST_0_PAYMENTACTION=Sale&METHOD=DoExpressCheckoutPayment
7
- headers:
8
- user-agent:
9
- - PayPal::Recurring/0.1.0
10
- content-type:
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
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
- headers:
17
- date:
18
- - Mon, 27 Jun 2011 00:51:19 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:06:43 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "819"
23
- content-type:
27
+ content-length:
28
+ - '819'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: TOKEN=EC%2d7A593227AC789800N&SUCCESSPAGEREDIRECTREQUESTED=false&TIMESTAMP=2011%2d06%2d27T00%3a51%3a24Z&CORRELATIONID=22c7539cdb7bd&ACK=Success&VERSION=72%2e0&BUILD=1936884&INSURANCEOPTIONSELECTED=false&SHIPPINGOPTIONISDEFAULT=false&PAYMENTINFO_0_TRANSACTIONID=5F811001LT4909607&PAYMENTINFO_0_TRANSACTIONTYPE=expresscheckout&PAYMENTINFO_0_PAYMENTTYPE=instant&PAYMENTINFO_0_ORDERTIME=2011%2d06%2d27T00%3a51%3a22Z&PAYMENTINFO_0_AMT=9%2e00&PAYMENTINFO_0_FEEAMT=0%2e56&PAYMENTINFO_0_TAXAMT=0%2e00&PAYMENTINFO_0_CURRENCYCODE=USD&PAYMENTINFO_0_PAYMENTSTATUS=Completed&PAYMENTINFO_0_PENDINGREASON=None&PAYMENTINFO_0_REASONCODE=None&PAYMENTINFO_0_PROTECTIONELIGIBILITY=Ineligible&PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE=None&PAYMENTINFO_0_SECUREMERCHANTACCOUNTID=DYJLBSW39VXJ8&PAYMENTINFO_0_ERRORCODE=0&PAYMENTINFO_0_ACK=Success
26
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://api-3t.sandbox.paypal.com:443/nvp
6
- body: USER=seller_1308793919_biz_api1.simplesideias.com.br&PWD=1308793931&SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AzaB6TzXx5amObyEghjU13.0av2Y&VERSION=72.0&ACTION=Cancel&PROFILEID=I-89LD5VEHEVK4&METHOD=ManageRecurringPaymentsProfileStatus
7
- headers:
8
- user-agent:
9
- - PayPal::Recurring/0.1.0
10
- content-type:
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
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
- headers:
17
- date:
18
- - Mon, 27 Jun 2011 11:18:34 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:00:55 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "387"
23
- content-type:
27
+ content-length:
28
+ - '387'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: TIMESTAMP=2011%2d06%2d27T11%3a18%3a34Z&CORRELATIONID=d56246b888833&ACK=Failure&VERSION=72%2e0&BUILD=1907759&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
26
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://api-3t.sandbox.paypal.com:443/nvp
6
- body: USER=seller_1308793919_biz_api1.simplesideias.com.br&PWD=1308793931&SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AzaB6TzXx5amObyEghjU13.0av2Y&VERSION=72.0&ACTION=Cancel&PROFILEID=I-89LD5VEHEVK4&METHOD=ManageRecurringPaymentsProfileStatus
7
- headers:
8
- user-agent:
9
- - PayPal::Recurring/0.1.0
10
- content-type:
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
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
14
20
  code: 200
15
21
  message: OK
16
- headers:
17
- date:
18
- - Mon, 27 Jun 2011 11:17:58 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:00:48 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "134"
23
- content-type:
27
+ content-length:
28
+ - '133'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: PROFILEID=I%2d89LD5VEHEVK4&TIMESTAMP=2011%2d06%2d27T11%3a18%3a00Z&CORRELATIONID=e148f6097d076&ACK=Success&VERSION=72%2e0&BUILD=1907759
26
- http_version: "1.1"
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