paypal-recurring 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.gitignore +3 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +45 -0
  5. data/README.rdoc +128 -0
  6. data/Rakefile +5 -0
  7. data/docs/PP_NVPAPI_DeveloperGuide.pdf +0 -0
  8. data/docs/PP_WPP_IntegrationGuide.pdf +0 -0
  9. data/lib/paypal-recurring.rb +1 -0
  10. data/lib/paypal/recurring.rb +106 -0
  11. data/lib/paypal/recurring/base.rb +149 -0
  12. data/lib/paypal/recurring/cacert.pem +3987 -0
  13. data/lib/paypal/recurring/request.rb +143 -0
  14. data/lib/paypal/recurring/response.rb +26 -0
  15. data/lib/paypal/recurring/response/base.rb +74 -0
  16. data/lib/paypal/recurring/response/checkout.rb +11 -0
  17. data/lib/paypal/recurring/response/details.rb +26 -0
  18. data/lib/paypal/recurring/response/manage_profile.rb +12 -0
  19. data/lib/paypal/recurring/response/payment.rb +22 -0
  20. data/lib/paypal/recurring/response/profile.rb +69 -0
  21. data/lib/paypal/recurring/version.rb +10 -0
  22. data/paypal-recurring.gemspec +25 -0
  23. data/spec/fixtures/checkout/failure.yml +26 -0
  24. data/spec/fixtures/checkout/success.yml +26 -0
  25. data/spec/fixtures/create_profile/failure.yml +26 -0
  26. data/spec/fixtures/create_profile/success.yml +26 -0
  27. data/spec/fixtures/details/cancelled.yml +26 -0
  28. data/spec/fixtures/details/failure.yml +26 -0
  29. data/spec/fixtures/details/success.yml +26 -0
  30. data/spec/fixtures/payment/failure.yml +26 -0
  31. data/spec/fixtures/payment/success.yml +26 -0
  32. data/spec/fixtures/profile/cancel/failure.yml +26 -0
  33. data/spec/fixtures/profile/cancel/success.yml +26 -0
  34. data/spec/fixtures/profile/failure.yml +26 -0
  35. data/spec/fixtures/profile/reactivate/failure.yml +26 -0
  36. data/spec/fixtures/profile/reactivate/success.yml +26 -0
  37. data/spec/fixtures/profile/success.yml +26 -0
  38. data/spec/fixtures/profile/suspend/failure.yml +26 -0
  39. data/spec/fixtures/profile/suspend/success.yml +26 -0
  40. data/spec/paypal/recurring_spec.rb +87 -0
  41. data/spec/paypal/request_spec.rb +102 -0
  42. data/spec/paypal/response/checkout_details_spec.rb +51 -0
  43. data/spec/paypal/response/checkout_spec.rb +32 -0
  44. data/spec/paypal/response/create_recurring_profile_spec.rb +39 -0
  45. data/spec/paypal/response/manage_profile_spec.rb +62 -0
  46. data/spec/paypal/response/profile_spec.rb +41 -0
  47. data/spec/paypal/response/request_payment_spec.rb +35 -0
  48. data/spec/spec_helper.rb +24 -0
  49. metadata +187 -0
@@ -0,0 +1,26 @@
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&RETURNURL=http%3a%2f%2fexample.com%2fthank_you&CANCELURL=http%3a%2f%2fexample.com%2fcanceled&PAYMENTREQUEST_0_CURRENCYCODE=USD&CURRENCYCODE=USD&DESC=Awesome%20-%20Monthly%20Subscription&PAYMENTREQUEST_0_DESC=Awesome%20-%20Monthly%20Subscription&L_BILLINGAGREEMENTDESCRIPTION0=Awesome%20-%20Monthly%20Subscription&PAYMENTREQUEST_0_NOTIFYURL=http%3a%2f%2fexample.com%2fpaypal%2fipn&NOTIFYURL=http%3a%2f%2fexample.com%2fpaypal%2fipn&PAYMENTREQUEST_0_PAYMENTACTION=Authorization&NOSHIPPING=1&L_BILLINGTYPE0=RecurringPayments&METHOD=SetExpressCheckout
7
+ headers:
8
+ user-agent:
9
+ - PayPal::Recurring/0.1.0
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Sun, 26 Jun 2011 21:44:13 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "136"
23
+ content-type:
24
+ - text/plain; charset=utf-8
25
+ body: TOKEN=EC%2d7B902269MT603740W&TIMESTAMP=2011%2d06%2d26T21%3a44%3a14Z&CORRELATIONID=d7914d1fd83b9&ACK=Success&VERSION=72%2e0&BUILD=1936884
26
+ http_version: "1.1"
@@ -0,0 +1,26 @@
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&METHOD=CreateRecurringPaymentsProfile
7
+ headers:
8
+ user-agent:
9
+ - PayPal::Recurring/0.1.0
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:03:37 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "933"
23
+ content-type:
24
+ - text/plain; charset=utf-8
25
+ body: TIMESTAMP=2011%2d06%2d27T11%3a03%3a38Z&CORRELATIONID=cc5d656723747&ACK=Failure&VERSION=72%2e0&BUILD=1907759&L_ERRORCODE0=11585&L_ERRORCODE1=11518&L_ERRORCODE2=11516&L_ERRORCODE3=11519&L_ERRORCODE4=11549&L_SHORTMESSAGE0=Missing%20Token%20or%20payment%20source&L_SHORTMESSAGE1=Invalid%20billing%20period%2e&L_SHORTMESSAGE2=Invalid%20billing%20frequency&L_SHORTMESSAGE3=Invalid%20amount&L_SHORTMESSAGE4=Start%20Date%20is%20required&L_LONGMESSAGE0=Missing%20Token%20or%20buyer%20credit%20card&L_LONGMESSAGE1=Billing%20period%20must%20be%20one%20of%20Day%2c%20Week%2c%20SemiMonth%2c%20or%20Year&L_LONGMESSAGE2=Billing%20frequency%20must%20be%20%3e%200%20and%20be%20less%20than%20or%20equal%20to%20one%20year&L_LONGMESSAGE3=Bill%20amount%20must%20be%20greater%20than%200&L_LONGMESSAGE4=Subscription%20start%20date%20is%20required&L_SEVERITYCODE0=Error&L_SEVERITYCODE1=Error&L_SEVERITYCODE2=Error&L_SEVERITYCODE3=Error&L_SEVERITYCODE4=Error
26
+ http_version: "1.1"
@@ -0,0 +1,26 @@
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-2UK36172XH723314S&PROFILEREFERENCE=1234&PROFILESTARTDATE=2011-06-27T07%3a59%3a54Z&MAXFAILEDPAYMENTS=1&AUTOBILLOUTAMT=AddToNextBilling&PAYMENTREQUEST_0_NOTIFYURL=http%3a%2f%2fexample.com%2fpaypal%2fipn&NOTIFYURL=http%3a%2f%2fexample.com%2fpaypal%2fipn&BILLINGFREQUENCY=1&BILLINGPERIOD=Month&METHOD=CreateRecurringPaymentsProfile
7
+ headers:
8
+ user-agent:
9
+ - PayPal::Recurring/0.1.0
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 10:59:58 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "162"
23
+ content-type:
24
+ - text/plain; charset=utf-8
25
+ body: PROFILEID=I%2d89LD5VEHEVK4&PROFILESTATUS=ActiveProfile&TIMESTAMP=2011%2d06%2d27T11%3a00%3a01Z&CORRELATIONID=17ea90bec34e6&ACK=Success&VERSION=72%2e0&BUILD=1907759
26
+ http_version: "1.1"
@@ -0,0 +1,26 @@
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-365619347A138351P&METHOD=GetExpressCheckoutDetails
7
+ headers:
8
+ user-agent:
9
+ - PayPal::Recurring/0.1.0
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 00:16:28 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "1013"
23
+ content-type:
24
+ - text/plain; charset=utf-8
25
+ body: TOKEN=EC%2d365619347A138351P&BILLINGAGREEMENTACCEPTEDSTATUS=0&CHECKOUTSTATUS=PaymentActionNotInitiated&TIMESTAMP=2011%2d06%2d27T00%3a16%3a30Z&CORRELATIONID=e25e70b5bf48a&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"
@@ -0,0 +1,26 @@
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&METHOD=GetExpressCheckoutDetails
7
+ headers:
8
+ user-agent:
9
+ - PayPal::Recurring/0.1.0
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 00:18:10 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "214"
23
+ content-type:
24
+ - text/plain; charset=utf-8
25
+ body: TIMESTAMP=2011%2d06%2d27T00%3a18%3a11Z&CORRELATIONID=c7975175bbfa4&ACK=Failure&VERSION=72%2e0&BUILD=1936884&L_ERRORCODE0=10410&L_SHORTMESSAGE0=Invalid%20token&L_LONGMESSAGE0=Invalid%20token%2e&L_SEVERITYCODE0=Error
26
+ http_version: "1.1"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Sun, 26 Jun 2011 23:21:45 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "1013"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 00:44:51 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "338"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 00:51:19 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "819"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:18:34 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "387"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:17:58 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "134"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:22:27 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "250"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:17:19 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "367"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:16:55 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "134"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:20:43 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "947"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:13:19 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "355"
23
+ content-type:
24
+ - 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"
@@ -0,0 +1,26 @@
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:
11
+ - application/x-www-form-urlencoded
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Mon, 27 Jun 2011 11:12:24 GMT
19
+ server:
20
+ - Apache
21
+ content-length:
22
+ - "134"
23
+ content-type:
24
+ - 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"