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
@@ -3,11 +3,12 @@ module PayPal
|
|
3
3
|
module Response
|
4
4
|
class Payment < Base
|
5
5
|
mapping(
|
6
|
-
:status
|
7
|
-
:amount
|
8
|
-
:fees
|
9
|
-
:
|
10
|
-
:
|
6
|
+
:status => :PAYMENTINFO_0_PAYMENTSTATUS,
|
7
|
+
:amount => :PAYMENTINFO_0_AMT,
|
8
|
+
:fees => :PAYMENTINFO_0_FEEAMT,
|
9
|
+
:transaction_id => :PAYMENTINFO_0_TRANSACTIONID,
|
10
|
+
:seller_id => :PAYMENTINFO_0_SECUREMERCHANTACCOUNTID,
|
11
|
+
:reference => [:PROFILEREFERENCE, :PAYMENTREQUEST_0_CUSTOM, :PAYMENTREQUEST_0_INVNUM]
|
11
12
|
)
|
12
13
|
|
13
14
|
def completed?
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module PayPal
|
2
|
+
module Recurring
|
3
|
+
module Response
|
4
|
+
class Refund < Base
|
5
|
+
mapping(
|
6
|
+
:transaction_id => :REFUNDTRANSACTIONID,
|
7
|
+
:fee_amount => :FEEREFUNDAMT,
|
8
|
+
:gross_amount => :GROSSREFUNDAMT,
|
9
|
+
:net_amount => :NETREFUNDAMT,
|
10
|
+
:amount => :TOTALREFUNDEDAMOUNT,
|
11
|
+
:currency => :CURRENCYCODE,
|
12
|
+
:info => :REFUNDINFO,
|
13
|
+
:status => :REFUNDSTATUS,
|
14
|
+
:pending_reason => :PENDINGREASON
|
15
|
+
)
|
16
|
+
|
17
|
+
def completed?
|
18
|
+
params[:REFUNDSTATUS] == "instant"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/paypal-recurring.gemspec
CHANGED
@@ -17,9 +17,11 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
-
s.add_development_dependency "rspec"
|
21
|
-
s.add_development_dependency "rake"
|
22
|
-
s.add_development_dependency "vcr"
|
23
|
-
s.add_development_dependency "fakeweb"
|
24
|
-
s.add_development_dependency "
|
20
|
+
s.add_development_dependency "rspec"
|
21
|
+
s.add_development_dependency "rake"
|
22
|
+
s.add_development_dependency "vcr"
|
23
|
+
s.add_development_dependency "fakeweb"
|
24
|
+
s.add_development_dependency "pry"
|
25
|
+
s.add_development_dependency "awesome_print"
|
26
|
+
s.add_development_dependency "activesupport"
|
25
27
|
end
|
@@ -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=seller_1308793919_biz_api1.simplesideias.com.br&PWD=1308793931&SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AzaB6TzXx5amObyEghjU13.0av2Y&VERSION=72.0&PAYMENTREQUEST_0_PAYMENTACTION=Authorization&NOSHIPPING=1&L_BILLINGTYPE0=RecurringPayments&METHOD=SetExpressCheckout
|
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:04:47 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '779'
|
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%2d23T03%3a04%3a48Z&CORRELATIONID=367f117161d20&ACK=Failure&VERSION=72%2e0&BUILD=2808426&L_ERRORCODE0=10478&L_ERRORCODE1=10404&L_ERRORCODE2=10405&L_SHORTMESSAGE0=Invalid%20Data&L_SHORTMESSAGE1=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_SHORTMESSAGE2=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_LONGMESSAGE0=Recurring%20payments%20profile%20description%20must%20be%20provided%20if%20the%20billing%20agreement%20type%20is%20recurring%20payments%2e&L_LONGMESSAGE1=ReturnURL%20is%20missing%2e&L_LONGMESSAGE2=CancelURL%20is%20missing%2e&L_SEVERITYCODE0=Error&L_SEVERITYCODE1=Error&L_SEVERITYCODE2=Error
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 03:04:49 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=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+-+Monthly+Subscription&PAYMENTREQUEST_0_DESC=Awesome+-+Monthly+Subscription&L_BILLINGAGREEMENTDESCRIPTION0=Awesome+-+Monthly+Subscription&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
|
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:04:44 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '136'
|
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%2d6K296451S2213041J&TIMESTAMP=2012%2d04%2d23T03%3a04%3a44Z&CORRELATIONID=f5242d7256b62&ACK=Success&VERSION=72%2e0&BUILD=2808426
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 03:04:45 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&METHOD=CreateRecurringPaymentsProfile
|
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:57:47 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '933'
|
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%2d23T03%3a57%3a48Z&CORRELATIONID=5bb3a49b407e3&ACK=Failure&VERSION=72%2e0&BUILD=2764190&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
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 03:57:48 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&INITAMT=9.00&FAILEDINITAMTACTION=CancelOnFailure&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-47J551124P900104V&PROFILEREFERENCE=1234&PAYMENTREQUEST_0_CUSTOM=1234&PAYMENTREQUEST_0_INVNUM=1234&PROFILESTARTDATE=2012-04-23T00%3A57%3A38Z&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
|
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:57:42 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '162'
|
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&PROFILESTATUS=ActiveProfile&TIMESTAMP=2012%2d04%2d23T03%3a57%3a44Z&CORRELATIONID=cf6f350f91d2&ACK=Success&VERSION=72%2e0&BUILD=2764190
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 03:57:44 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&TOKEN=EC-8J298813NS092694P&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
|
-
- Mon,
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 03:55:18 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '1013'
|
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%2d8J298813NS092694P&BILLINGAGREEMENTACCEPTEDSTATUS=0&CHECKOUTSTATUS=PaymentActionNotInitiated&TIMESTAMP=2012%2d04%2d23T03%3a55%3a19Z&CORRELATIONID=cb5bd0e241c81&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&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:55:20 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&TOKEN&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
|
-
- Mon,
|
19
|
-
server:
|
22
|
+
headers:
|
23
|
+
date:
|
24
|
+
- Mon, 23 Apr 2012 03:46:41 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '214'
|
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%2d23T03%3a46%3a42Z&CORRELATIONID=2f58810ae5a1f&ACK=Failure&VERSION=72%2e0&BUILD=2808426&L_ERRORCODE0=10410&L_SHORTMESSAGE0=Invalid%20token&L_LONGMESSAGE0=Invalid%20token%2e&L_SEVERITYCODE0=Error
|
36
|
+
http_version: '1.1'
|
37
|
+
recorded_at: Mon, 23 Apr 2012 03:46:42 GMT
|
38
|
+
recorded_with: VCR 2.1.0
|