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&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
|
-
|
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:04:16 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '254'
|
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=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
|
-
|
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=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
|
-
|
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:29 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '367'
|
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%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
|
-
|
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=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
|
-
|
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:22 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '134'
|
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%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
|
-
|
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&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
|
-
|
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:01:53 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '939'
|
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&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®ULARAMTPAID=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®ULARBILLINGPERIOD=Month®ULARBILLINGFREQUENCY=1®ULARTOTALBILLINGCYCLES=0®ULARCURRENCYCODE=BRL®ULARAMT=9%2e00®ULARSHIPPINGAMT=0%2e00®ULARTAXAMT=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
|
-
|
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=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
|
-
|
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:19 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '354'
|
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%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
|
-
|
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=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
|
-
|
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:13 GMT
|
25
|
+
server:
|
20
26
|
- Apache
|
21
|
-
content-length:
|
22
|
-
-
|
23
|
-
|
27
|
+
content-length:
|
28
|
+
- '134'
|
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%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
|