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&PROFILEID=FOO&METHOD=GetRecurringPaymentsProfileDetails
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&PROFILEID=invalid&METHOD=GetRecurringPaymentsProfileDetails
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:22:27 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:04:16 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "250"
23
- content-type:
27
+ content-length:
28
+ - '254'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: PROFILEID=FOO&TIMESTAMP=2011%2d06%2d27T11%3a22%3a27Z&CORRELATIONID=5ee1a2fc974cb&ACK=Failure&VERSION=72%2e0&BUILD=1907759&L_ERRORCODE0=11552&L_SHORTMESSAGE0=Invalid%20profile%20ID&L_LONGMESSAGE0=The%20profile%20ID%20is%20invalid&L_SEVERITYCODE0=Error
26
- http_version: "1.1"
33
+ body:
34
+ encoding: US-ASCII
35
+ string: PROFILEID=invalid&TIMESTAMP=2012%2d04%2d23T04%3a04%3a16Z&CORRELATIONID=ba85c84dacdef&ACK=Failure&VERSION=72%2e0&BUILD=2764190&L_ERRORCODE0=11552&L_SHORTMESSAGE0=Invalid%20profile%20ID&L_LONGMESSAGE0=The%20profile%20ID%20is%20invalid&L_SEVERITYCODE0=Error
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 04:04:17 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=Reactivate&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=Reactivate&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:19 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:00:29 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "367"
23
- content-type:
27
+ content-length:
28
+ - '367'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: TIMESTAMP=2011%2d06%2d27T11%3a17%3a20Z&CORRELATIONID=3853b4ed4e0ef&ACK=Failure&VERSION=72%2e0&BUILD=1907759&L_ERRORCODE0=11558&L_SHORTMESSAGE0=Invalid%20profile%20status%20for%20reactivate%20action%3b%20profile%20should%20be%20suspended&L_LONGMESSAGE0=Invalid%20profile%20status%20for%20reactivate%20action%3b%20profile%20should%20be%20suspended&L_SEVERITYCODE0=Error
26
- http_version: "1.1"
33
+ body:
34
+ encoding: US-ASCII
35
+ string: TIMESTAMP=2012%2d04%2d23T04%3a00%3a31Z&CORRELATIONID=2ddcc75ddcad1&ACK=Failure&VERSION=72%2e0&BUILD=2764190&L_ERRORCODE0=11558&L_SHORTMESSAGE0=Invalid%20profile%20status%20for%20reactivate%20action%3b%20profile%20should%20be%20suspended&L_LONGMESSAGE0=Invalid%20profile%20status%20for%20reactivate%20action%3b%20profile%20should%20be%20suspended&L_SEVERITYCODE0=Error
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 04:00:31 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=Reactivate&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=Reactivate&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:16:55 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:00:22 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "134"
23
- content-type:
27
+ content-length:
28
+ - '134'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: PROFILEID=I%2d89LD5VEHEVK4&TIMESTAMP=2011%2d06%2d27T11%3a16%3a57Z&CORRELATIONID=d7fdc3e9ce240&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%3a25Z&CORRELATIONID=77bc3271b82a8&ACK=Success&VERSION=72%2e0&BUILD=2764190
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 04:00:26 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&PROFILEID=I-89LD5VEHEVK4&METHOD=GetRecurringPaymentsProfileDetails
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&PROFILEID=I-W4FNTE6EXJ2W&METHOD=GetRecurringPaymentsProfileDetails
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:20:43 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:01:53 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "947"
23
- content-type:
27
+ content-length:
28
+ - '939'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: PROFILEID=I%2d89LD5VEHEVK4&STATUS=Cancelled&AUTOBILLOUTAMT=AddToNextBilling&DESC=Awesome%20%2d%20Monthly%20Subscription&MAXFAILEDPAYMENTS=1&SUBSCRIBERNAME=Test%20User&PROFILESTARTDATE=2011%2d06%2d27T07%3a00%3a00Z&PROFILEREFERENCE=1234&NUMCYCLESCOMPLETED=1&NUMCYCLESREMAINING=18446744073709551615&OUTSTANDINGBALANCE=0%2e00&FAILEDPAYMENTCOUNT=0&LASTPAYMENTDATE=2011%2d06%2d27T11%3a00%3a11Z&LASTPAYMENTAMT=9%2e00&TRIALAMTPAID=0%2e00&REGULARAMTPAID=9%2e00&AGGREGATEAMT=9%2e00&AGGREGATEOPTIONALAMT=0%2e00&FINALPAYMENTDUEDATE=1970%2d01%2d01T00%3a00%3a00Z&TIMESTAMP=2011%2d06%2d27T11%3a20%3a44Z&CORRELATIONID=bd01cda849f4d&ACK=Success&VERSION=72%2e0&BUILD=1907759&BILLINGPERIOD=Month&BILLINGFREQUENCY=1&TOTALBILLINGCYCLES=0&CURRENCYCODE=USD&AMT=9%2e00&SHIPPINGAMT=0%2e00&TAXAMT=0%2e00&REGULARBILLINGPERIOD=Month&REGULARBILLINGFREQUENCY=1&REGULARTOTALBILLINGCYCLES=0&REGULARCURRENCYCODE=USD&REGULARAMT=9%2e00&REGULARSHIPPINGAMT=0%2e00&REGULARTAXAMT=0%2e00
26
- http_version: "1.1"
33
+ body:
34
+ encoding: US-ASCII
35
+ string: PROFILEID=I%2dW4FNTE6EXJ2W&STATUS=Cancelled&AUTOBILLOUTAMT=AddToNextBilling&DESC=Awesome%20%2d%20Monthly%20Subscription&MAXFAILEDPAYMENTS=1&SUBSCRIBERNAME=Jos%c3%a9%20da%20Silva&PROFILESTARTDATE=2012%2d04%2d23T03%3a00%3a00Z&PROFILEREFERENCE=1234&NUMCYCLESCOMPLETED=0&NUMCYCLESREMAINING=0&OUTSTANDINGBALANCE=0%2e00&FAILEDPAYMENTCOUNT=0&LASTPAYMENTDATE=2012%2d04%2d23T03%3a57%3a58Z&LASTPAYMENTAMT=9%2e00&TRIALAMTPAID=0%2e00&REGULARAMTPAID=0%2e00&AGGREGATEAMT=0%2e00&AGGREGATEOPTIONALAMT=9%2e00&FINALPAYMENTDUEDATE=1970%2d01%2d01T00%3a00%3a00Z&TIMESTAMP=2012%2d04%2d23T04%3a01%3a55Z&CORRELATIONID=61fe2dc19c6f4&ACK=Success&VERSION=72%2e0&BUILD=2764190&BILLINGPERIOD=Month&BILLINGFREQUENCY=1&TOTALBILLINGCYCLES=0&CURRENCYCODE=BRL&AMT=9%2e00&SHIPPINGAMT=0%2e00&TAXAMT=0%2e00&REGULARBILLINGPERIOD=Month&REGULARBILLINGFREQUENCY=1&REGULARTOTALBILLINGCYCLES=0&REGULARCURRENCYCODE=BRL&REGULARAMT=9%2e00&REGULARSHIPPINGAMT=0%2e00&REGULARTAXAMT=0%2e00
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 04:01:55 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=Suspend&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=Suspend&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:13:19 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:00:19 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "355"
23
- content-type:
27
+ content-length:
28
+ - '354'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: TIMESTAMP=2011%2d06%2d27T11%3a13%3a20Z&CORRELATIONID=1c35a16760463&ACK=Failure&VERSION=72%2e0&BUILD=1907759&L_ERRORCODE0=11557&L_SHORTMESSAGE0=Invalid%20profile%20status%20for%20suspend%20action%3b%20profile%20should%20be%20active&L_LONGMESSAGE0=Invalid%20profile%20status%20for%20suspend%20action%3b%20profile%20should%20be%20active&L_SEVERITYCODE0=Error
26
- http_version: "1.1"
33
+ body:
34
+ encoding: US-ASCII
35
+ string: TIMESTAMP=2012%2d04%2d23T04%3a00%3a19Z&CORRELATIONID=50b4f36ae94e&ACK=Failure&VERSION=72%2e0&BUILD=2764190&L_ERRORCODE0=11557&L_SHORTMESSAGE0=Invalid%20profile%20status%20for%20suspend%20action%3b%20profile%20should%20be%20active&L_LONGMESSAGE0=Invalid%20profile%20status%20for%20suspend%20action%3b%20profile%20should%20be%20active&L_SEVERITYCODE0=Error
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 04:00:20 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=Suspend&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=Suspend&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:12:24 GMT
19
- server:
22
+ headers:
23
+ date:
24
+ - Mon, 23 Apr 2012 04:00:13 GMT
25
+ server:
20
26
  - Apache
21
- content-length:
22
- - "134"
23
- content-type:
27
+ content-length:
28
+ - '134'
29
+ connection:
30
+ - close
31
+ content-type:
24
32
  - text/plain; charset=utf-8
25
- body: PROFILEID=I%2d89LD5VEHEVK4&TIMESTAMP=2011%2d06%2d27T11%3a12%3a26Z&CORRELATIONID=a2f9cf29d9af6&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%3a16Z&CORRELATIONID=ccc87f01d6607&ACK=Success&VERSION=72%2e0&BUILD=2764190
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 04:00:16 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&TRANSACTIONID=4GP25924UB013401J&PROFILEREFERENCE=12345&PAYMENTREQUEST_0_CUSTOM=12345&PAYMENTREQUEST_0_INVNUM=12345&REFUNDTYPE=Full&PAYMENTREQUEST_0_AMT=9.00&AMT=9.00&PAYMENTREQUEST_0_CURRENCYCODE=BRL&CURRENCYCODE=BRL&METHOD=RefundTransaction
9
+ headers:
10
+ accept:
11
+ - ! '*/*'
12
+ user-agent:
13
+ - PayPal::Recurring/1.0.0
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 10:55:15 GMT
25
+ server:
26
+ - Apache
27
+ content-length:
28
+ - '262'
29
+ connection:
30
+ - close
31
+ content-type:
32
+ - text/plain; charset=utf-8
33
+ body:
34
+ encoding: US-ASCII
35
+ string: TIMESTAMP=2012%2d04%2d23T10%3a55%3a17Z&CORRELATIONID=89f1590a7f107&ACK=Failure&VERSION=72%2e0&BUILD=2808426&L_ERRORCODE0=10009&L_SHORTMESSAGE0=Transaction%20refused&L_LONGMESSAGE0=This%20transaction%20has%20already%20been%20fully%20refunded&L_SEVERITYCODE0=Error
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 10:55:17 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&TRANSACTIONID=4GP25924UB013401J&PROFILEREFERENCE=12345&PAYMENTREQUEST_0_CUSTOM=12345&PAYMENTREQUEST_0_INVNUM=12345&REFUNDTYPE=Full&PAYMENTREQUEST_0_AMT=9.00&AMT=9.00&PAYMENTREQUEST_0_CURRENCYCODE=BRL&CURRENCYCODE=BRL&METHOD=RefundTransaction
9
+ headers:
10
+ accept:
11
+ - ! '*/*'
12
+ user-agent:
13
+ - PayPal::Recurring/1.0.0
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 10:53:04 GMT
25
+ server:
26
+ - Apache
27
+ content-length:
28
+ - '251'
29
+ connection:
30
+ - close
31
+ content-type:
32
+ - text/plain; charset=utf-8
33
+ body:
34
+ encoding: US-ASCII
35
+ string: REFUNDTRANSACTIONID=5MM61417CA010574T&FEEREFUNDAMT=0%2e71&GROSSREFUNDAMT=9%2e00&NETREFUNDAMT=8%2e29&CURRENCYCODE=BRL&TOTALREFUNDEDAMOUNT=9%2e00&TIMESTAMP=2012%2d04%2d23T10%3a53%3a10Z&CORRELATIONID=b902163c2d526&ACK=Success&VERSION=72%2e0&BUILD=2808426
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 10:53:10 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=10.00&AMT=10.00&PROFILEID=I-W4FNTE6EXJ2W&METHOD=UpdateRecurringPaymentsProfile
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:37:48 GMT
25
+ server:
26
+ - Apache
27
+ content-length:
28
+ - '276'
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%3a37%3a49Z&CORRELATIONID=64801d3bcdb4&ACK=Failure&VERSION=72%2e0&BUILD=2764190&L_ERRORCODE0=11531&L_SHORTMESSAGE0=Invalid%20profile%20status%2e&L_LONGMESSAGE0=The%20profile%20status%20is%20invalid%2e&L_SEVERITYCODE0=Error
36
+ http_version: '1.1'
37
+ recorded_at: Mon, 23 Apr 2012 04:37:49 GMT
38
+ recorded_with: VCR 2.1.0