paypal-payment 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/.rspec +1 -0
- data/Gemfile +18 -0
- data/Guardfile +24 -0
- data/README.rdoc +107 -0
- data/Rakefile +5 -0
- data/docs/AdaptivePayments.rdoc +84 -0
- data/docs/PP_NVPAPI_DeveloperGuide.pdf +0 -0
- data/docs/PP_WPP_IntegrationGuide.pdf +0 -0
- data/docs/adaptive_payments.md +55 -0
- data/docs/api.txt +67 -0
- data/docs/design.txt +38 -0
- data/docs/express_checkout.md +172 -0
- data/docs/requirements.txt +32 -0
- data/lib/paypal-payment.rb +10 -0
- data/lib/paypal/adaptive_payments.rb +31 -0
- data/lib/paypal/adaptive_payments/api.rb +51 -0
- data/lib/paypal/adaptive_payments/base.rb +11 -0
- data/lib/paypal/adaptive_payments/client_details.rb +14 -0
- data/lib/paypal/adaptive_payments/display_options.rb +10 -0
- data/lib/paypal/adaptive_payments/funding_constraint.rb +11 -0
- data/lib/paypal/adaptive_payments/funding_type_info.rb +8 -0
- data/lib/paypal/adaptive_payments/funding_type_list.rb +11 -0
- data/lib/paypal/adaptive_payments/initiating_entity.rb +11 -0
- data/lib/paypal/adaptive_payments/institution_customer.rb +13 -0
- data/lib/paypal/adaptive_payments/invoice_data.rb +13 -0
- data/lib/paypal/adaptive_payments/invoice_item.rb +11 -0
- data/lib/paypal/adaptive_payments/payment.rb +105 -0
- data/lib/paypal/adaptive_payments/payment_info.rb +18 -0
- data/lib/paypal/adaptive_payments/payment_info_list.rb +11 -0
- data/lib/paypal/adaptive_payments/payment_options.rb +39 -0
- data/lib/paypal/adaptive_payments/phone.rb +9 -0
- data/lib/paypal/adaptive_payments/preapproval.rb +52 -0
- data/lib/paypal/adaptive_payments/receiver.rb +17 -0
- data/lib/paypal/adaptive_payments/receiver_list.rb +49 -0
- data/lib/paypal/adaptive_payments/receiver_options.rb +19 -0
- data/lib/paypal/adaptive_payments/request.rb +51 -0
- data/lib/paypal/adaptive_payments/response.rb +38 -0
- data/lib/paypal/adaptive_payments/response/address.rb +13 -0
- data/lib/paypal/adaptive_payments/response/address_list.rb +11 -0
- data/lib/paypal/adaptive_payments/response/base_address.rb +13 -0
- data/lib/paypal/adaptive_payments/response/details.rb +19 -0
- data/lib/paypal/adaptive_payments/response/error_list.rb +15 -0
- data/lib/paypal/adaptive_payments/response/pay.rb +31 -0
- data/lib/paypal/adaptive_payments/response/pay_error.rb +16 -0
- data/lib/paypal/adaptive_payments/response/pay_error_list.rb +15 -0
- data/lib/paypal/adaptive_payments/response/pay_options.rb +7 -0
- data/lib/paypal/adaptive_payments/response/preapproval.rb +47 -0
- data/lib/paypal/adaptive_payments/response/refund.rb +16 -0
- data/lib/paypal/adaptive_payments/response/refund_info.rb +24 -0
- data/lib/paypal/adaptive_payments/response/refund_info_list.rb +11 -0
- data/lib/paypal/adaptive_payments/response/shipping_address.rb +11 -0
- data/lib/paypal/adaptive_payments/sender_identifier.rb +7 -0
- data/lib/paypal/adaptive_payments/sender_options.rb +8 -0
- data/lib/paypal/api.rb +94 -0
- data/lib/paypal/cacert.pem +3987 -0
- data/lib/paypal/common.rb +11 -0
- data/lib/paypal/common/base.rb +83 -0
- data/lib/paypal/common/error_data.rb +15 -0
- data/lib/paypal/common/request.rb +45 -0
- data/lib/paypal/common/request_envelope.rb +13 -0
- data/lib/paypal/common/response.rb +34 -0
- data/lib/paypal/common/response_envelope.rb +19 -0
- data/lib/paypal/express_checkout.rb +19 -0
- data/lib/paypal/express_checkout/account.rb +16 -0
- data/lib/paypal/express_checkout/api.rb +43 -0
- data/lib/paypal/express_checkout/base.rb +37 -0
- data/lib/paypal/express_checkout/billing.rb +7 -0
- data/lib/paypal/express_checkout/callback.rb +17 -0
- data/lib/paypal/express_checkout/checkout.rb +144 -0
- data/lib/paypal/express_checkout/fields.rb +449 -0
- data/lib/paypal/express_checkout/fmf.rb +7 -0
- data/lib/paypal/express_checkout/payment.rb +76 -0
- data/lib/paypal/express_checkout/payment_item.rb +7 -0
- data/lib/paypal/express_checkout/recurring.rb +131 -0
- data/lib/paypal/express_checkout/request.rb +212 -0
- data/lib/paypal/express_checkout/response.rb +52 -0
- data/lib/paypal/express_checkout/response/account.rb +30 -0
- data/lib/paypal/express_checkout/response/address.rb +29 -0
- data/lib/paypal/express_checkout/response/authorization.rb +25 -0
- data/lib/paypal/express_checkout/response/base.rb +125 -0
- data/lib/paypal/express_checkout/response/callback_request.rb +10 -0
- data/lib/paypal/express_checkout/response/callback_response.rb +8 -0
- data/lib/paypal/express_checkout/response/capture.rb +14 -0
- data/lib/paypal/express_checkout/response/checkout.rb +11 -0
- data/lib/paypal/express_checkout/response/details.rb +35 -0
- data/lib/paypal/express_checkout/response/manage_profile.rb +9 -0
- data/lib/paypal/express_checkout/response/notification.rb +85 -0
- data/lib/paypal/express_checkout/response/payment.rb +24 -0
- data/lib/paypal/express_checkout/response/profile.rb +58 -0
- data/lib/paypal/express_checkout/response/reference.rb +11 -0
- data/lib/paypal/express_checkout/response/refund.rb +13 -0
- data/lib/paypal/express_checkout/response/search.rb +33 -0
- data/lib/paypal/express_checkout/response/transaction_details.rb +11 -0
- data/lib/paypal/express_checkout/shipping_option.rb +7 -0
- data/lib/paypal/express_checkout/utils.rb +26 -0
- data/lib/paypal/express_checkout/version.rb +10 -0
- data/lib/paypal/invoice.rb +22 -0
- data/lib/paypal/invoice/api.rb +51 -0
- data/lib/paypal/invoice/base.rb +11 -0
- data/lib/paypal/invoice/base_address.rb +11 -0
- data/lib/paypal/invoice/business_info.rb +17 -0
- data/lib/paypal/invoice/date_range.rb +8 -0
- data/lib/paypal/invoice/invoice.rb +117 -0
- data/lib/paypal/invoice/invoice_details.rb +38 -0
- data/lib/paypal/invoice/invoice_item.rb +13 -0
- data/lib/paypal/invoice/invoice_item_list.rb +10 -0
- data/lib/paypal/invoice/invoice_summary.rb +22 -0
- data/lib/paypal/invoice/invoice_summary_list.rb +10 -0
- data/lib/paypal/invoice/other_payment_details.rb +13 -0
- data/lib/paypal/invoice/payment_details.rb +16 -0
- data/lib/paypal/invoice/paypal_payment_details.rb +11 -0
- data/lib/paypal/invoice/request.rb +43 -0
- data/lib/paypal/invoice/response.rb +27 -0
- data/lib/paypal/invoice/response/details.rb +23 -0
- data/lib/paypal/invoice/response/invoice.rb +10 -0
- data/lib/paypal/invoice/response/search.rb +15 -0
- data/lib/paypal/invoice/search.rb +19 -0
- data/lib/paypal/invoice/search_parameters.rb +20 -0
- data/lib/paypal/permissions.rb +12 -0
- data/lib/paypal/permissions/api.rb +60 -0
- data/lib/paypal/permissions/base.rb +11 -0
- data/lib/paypal/permissions/permission.rb +33 -0
- data/lib/paypal/permissions/personal_data.rb +17 -0
- data/lib/paypal/permissions/request.rb +52 -0
- data/lib/paypal/permissions/response.rb +24 -0
- data/lib/paypal/permissions/response/permission.rb +14 -0
- data/lib/paypal/permissions/response/personal_data.rb +8 -0
- data/lib/paypal/permissions/response/token.rb +10 -0
- data/lib/paypal/permissions/token.rb +13 -0
- data/lib/paypal/recurring.rb +110 -0
- data/lib/paypal/request.rb +82 -0
- data/lib/paypal/version.rb +8 -0
- data/paypal-payment.gemspec +30 -0
- data/spec/fixtures/adaptive_payments/payment/create/failure.yml +62 -0
- data/spec/fixtures/adaptive_payments/payment/create/success.yml +58 -0
- data/spec/fixtures/adaptive_payments/payment/details/success.yml +113 -0
- data/spec/fixtures/adaptive_payments/payment/pay/failure.yml +62 -0
- data/spec/fixtures/adaptive_payments/payment/pay/preapproval.yml +58 -0
- data/spec/fixtures/adaptive_payments/payment/pay/success.yml +58 -0
- data/spec/fixtures/adaptive_payments/payment/pay/with_pay_key.yml +58 -0
- data/spec/fixtures/adaptive_payments/payment/refund/failure.yml +62 -0
- data/spec/fixtures/adaptive_payments/payment/refund/success.yml +58 -0
- data/spec/fixtures/adaptive_payments/payment/shipping_addresses/success.yml +113 -0
- data/spec/fixtures/adaptive_payments/payment_options/get/success.yml +174 -0
- data/spec/fixtures/adaptive_payments/payment_options/set/success.yml +113 -0
- data/spec/fixtures/adaptive_payments/preapproval/create/success.yml +58 -0
- data/spec/fixtures/adaptive_payments/preapproval/details/success.yml +168 -0
- data/spec/fixtures/express_checkout/account/balance/success.yml +32 -0
- data/spec/fixtures/express_checkout/account/pal_details/success.yml +32 -0
- data/spec/fixtures/express_checkout/checkout/checkout/sales/success.yml +61 -0
- data/spec/fixtures/express_checkout/checkout/checkout/success.yml +32 -0
- data/spec/fixtures/express_checkout/checkout/details/failure.yml +32 -0
- data/spec/fixtures/express_checkout/checkout/details/success.yml +61 -0
- data/spec/fixtures/express_checkout/checkout/pay/sales/success.yml +61 -0
- data/spec/fixtures/express_checkout/checkout/pay/success.yml +61 -0
- data/spec/fixtures/express_checkout/payment/details/failure.yml +32 -0
- data/spec/fixtures/express_checkout/payment/details/success.yml +32 -0
- data/spec/fixtures/express_checkout/payment/refund/failure.yml +32 -0
- data/spec/fixtures/express_checkout/payment/refund/success.yml +32 -0
- data/spec/fixtures/express_checkout/payment/search/success.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/cancel/failure.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/cancel/success.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/checkout/success.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/create_profile/failure.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/create_profile/success.yml +61 -0
- data/spec/fixtures/express_checkout/recurring/profile/failure.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/profile/success.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/reactivate/failure.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/reactivate/success.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/suspend/failure.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/suspend/success.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/update_profile/failure.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/update_profile/profile.yml +32 -0
- data/spec/fixtures/express_checkout/recurring/update_profile/success.yml +32 -0
- data/spec/fixtures/invoice/cancel/success.yml +174 -0
- data/spec/fixtures/invoice/create/failure.yml +62 -0
- data/spec/fixtures/invoice/create/success.yml +60 -0
- data/spec/fixtures/invoice/create_and_send/failure.yml +62 -0
- data/spec/fixtures/invoice/create_and_send/success.yml +60 -0
- data/spec/fixtures/invoice/details/success.yml +117 -0
- data/spec/fixtures/invoice/mark_as_paid/failure.yml +180 -0
- data/spec/fixtures/invoice/mark_as_paid/success.yml +174 -0
- data/spec/fixtures/invoice/mark_as_refunded/success.yml +174 -0
- data/spec/fixtures/invoice/mark_as_unpaid/success.yml +231 -0
- data/spec/fixtures/invoice/search/success.yml +174 -0
- data/spec/fixtures/invoice/send/success.yml +117 -0
- data/spec/fixtures/invoice/update/failure.yml +119 -0
- data/spec/fixtures/invoice/update/success.yml +117 -0
- data/spec/fixtures/ipn/express_checkout.json +35 -0
- data/spec/fixtures/ipn/recurring_payment.json +44 -0
- data/spec/fixtures/ipn/recurring_payment_profile_created.json +31 -0
- data/spec/fixtures/ipn/recurring_payment_profile_created_with_initial_amount.json +33 -0
- data/spec/fixtures/ipn/recurring_payment_skipped.json +30 -0
- data/spec/fixtures/ipn/recurring_payment_with_initial_amount.json +44 -0
- data/spec/fixtures/notification/failure.yml +50 -0
- data/spec/fixtures/notification/success.yml +50 -0
- data/spec/paypal/adaptive_payments/api_spec.rb +20 -0
- data/spec/paypal/adaptive_payments/payment/base_spec.rb +28 -0
- data/spec/paypal/adaptive_payments/payment/create_spec.rb +63 -0
- data/spec/paypal/adaptive_payments/payment/details_spec.rb +34 -0
- data/spec/paypal/adaptive_payments/payment/pay_spec.rb +97 -0
- data/spec/paypal/adaptive_payments/payment/refund_spec.rb +49 -0
- data/spec/paypal/adaptive_payments/payment/shipping_addresses_spec.rb +30 -0
- data/spec/paypal/adaptive_payments/payment_options/get_spec.rb +33 -0
- data/spec/paypal/adaptive_payments/payment_options/set_spec.rb +66 -0
- data/spec/paypal/adaptive_payments/preapproval/cancel_spec.rb +34 -0
- data/spec/paypal/adaptive_payments/preapproval/create_spec.rb +39 -0
- data/spec/paypal/adaptive_payments/preapproval/details_spec.rb +34 -0
- data/spec/paypal/adaptive_payments/request_spec.rb +48 -0
- data/spec/paypal/api_spec.rb +78 -0
- data/spec/paypal/common/base_spec.rb +157 -0
- data/spec/paypal/common/error_data_spec.rb +0 -0
- data/spec/paypal/common/request_envelope_spec.rb +6 -0
- data/spec/paypal/common/response_spec.rb +0 -0
- data/spec/paypal/express_checkout/account/balance_spec.rb +25 -0
- data/spec/paypal/express_checkout/account/pal_details_spec.rb +20 -0
- data/spec/paypal/express_checkout/checkout/checkout_spec.rb +73 -0
- data/spec/paypal/express_checkout/checkout/details_spec.rb +70 -0
- data/spec/paypal/express_checkout/checkout/pay_spec.rb +68 -0
- data/spec/paypal/express_checkout/fields_spec.rb +138 -0
- data/spec/paypal/express_checkout/payment/refund_spec.rb +34 -0
- data/spec/paypal/express_checkout/payment/search_spec.rb +24 -0
- data/spec/paypal/express_checkout/payment/transaction_details_spec.rb +30 -0
- data/spec/paypal/express_checkout/payment_spec.rb +13 -0
- data/spec/paypal/express_checkout/recurring/create_profile_spec.rb +50 -0
- data/spec/paypal/express_checkout/recurring/manage_profile_spec.rb +62 -0
- data/spec/paypal/express_checkout/recurring/profile_spec.rb +44 -0
- data/spec/paypal/express_checkout/recurring/update_profile_spec.rb +50 -0
- data/spec/paypal/express_checkout/request_spec.rb +221 -0
- data/spec/paypal/express_checkout/response/account_spec.rb +33 -0
- data/spec/paypal/express_checkout/response/base_spec.rb +253 -0
- data/spec/paypal/invoice/cancel_spec.rb +38 -0
- data/spec/paypal/invoice/create_and_send_spec.rb +58 -0
- data/spec/paypal/invoice/create_spec.rb +58 -0
- data/spec/paypal/invoice/details_spec.rb +39 -0
- data/spec/paypal/invoice/mark_as_paid_spec.rb +75 -0
- data/spec/paypal/invoice/mark_as_refunded_spec.rb +47 -0
- data/spec/paypal/invoice/mark_as_unpaid_spec.rb +43 -0
- data/spec/paypal/invoice/search_spec.rb +70 -0
- data/spec/paypal/invoice/send_spec.rb +48 -0
- data/spec/paypal/invoice/update_spec.rb +72 -0
- data/spec/paypal/request_spec.rb +45 -0
- data/spec/spec_helper.rb +35 -0
- metadata +546 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/CreateAndSendInvoice
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"invoice\":{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"itemList\":{\"item\":[{\"name\":\"iPhone 5\",\"quantity\":1,\"unitPrice\":1000.0}]},\"currencyCode\":\"USD\",\"paymentTerms\":\"Net30\"},\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- PayPal::Payment/0.1.0
|
12
|
+
X-Paypal-Security-Userid:
|
13
|
+
- chardy_api1.gmail.com
|
14
|
+
X-Paypal-Security-Password:
|
15
|
+
- "8DTSWBZC7GDR3T4X"
|
16
|
+
X-Paypal-Security-Signature:
|
17
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
18
|
+
X-Paypal-Request-Data-Format:
|
19
|
+
- JSON
|
20
|
+
X-Paypal-Response-Data-Format:
|
21
|
+
- JSON
|
22
|
+
X-Paypal-Application-Id:
|
23
|
+
- APP-80W284485P519543T
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Date:
|
30
|
+
- Sat, 26 Jan 2013 15:28:40 GMT
|
31
|
+
Server:
|
32
|
+
- Apache-Coyote/1.1
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Paypal-Message-Protocol:
|
36
|
+
- NONE
|
37
|
+
X-Paypal-Response-Data-Format:
|
38
|
+
- JSON
|
39
|
+
X-Ebay-Soa-Request-Id:
|
40
|
+
- 13c77798-61a0-a486-d637-6877ffffff74!Invoice!10.72.109.99![]
|
41
|
+
X-Paypal-Operation-Name:
|
42
|
+
- CreateAndSendInvoice
|
43
|
+
X-Paypal-Service-Name:
|
44
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
45
|
+
X-Paypal-Service-Version:
|
46
|
+
- 1.0.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json;charset=UTF-8
|
49
|
+
Set-Cookie:
|
50
|
+
- Apache=10.72.109.11.1359214118418269; path=/; expires=Mon, 19-Jan-43 15:28:38 GMT
|
51
|
+
Vary:
|
52
|
+
- Accept-Encoding
|
53
|
+
Transfer-Encoding:
|
54
|
+
- chunked
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-01-26T07:28:40.005-08:00\",\"ack\":\"Success\",\"correlationId\":\"aa7458b898690\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-EWR3-Y89L-QV38-5U5R\",\"invoiceNumber\":\"0017\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-EWR3-Y89L-QV38-5U5R\",\"totalAmount\":\"100000\"}"
|
58
|
+
http_version:
|
59
|
+
recorded_at: Sat, 26 Jan 2013 15:28:39 GMT
|
60
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,117 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/CreateAndSendInvoice
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"invoice\":{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"itemList\":{\"item\":[{\"name\":\"iPhone 5\",\"quantity\":1,\"unitPrice\":1000.0}]},\"currencyCode\":\"USD\",\"paymentTerms\":\"Net30\"},\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- PayPal::Payment/0.1.0
|
12
|
+
X-Paypal-Security-Userid:
|
13
|
+
- chardy_api1.gmail.com
|
14
|
+
X-Paypal-Security-Password:
|
15
|
+
- "8DTSWBZC7GDR3T4X"
|
16
|
+
X-Paypal-Security-Signature:
|
17
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
18
|
+
X-Paypal-Request-Data-Format:
|
19
|
+
- JSON
|
20
|
+
X-Paypal-Response-Data-Format:
|
21
|
+
- JSON
|
22
|
+
X-Paypal-Application-Id:
|
23
|
+
- APP-80W284485P519543T
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Date:
|
30
|
+
- Sun, 27 Jan 2013 16:19:13 GMT
|
31
|
+
Server:
|
32
|
+
- Apache-Coyote/1.1
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Paypal-Message-Protocol:
|
36
|
+
- NONE
|
37
|
+
X-Paypal-Response-Data-Format:
|
38
|
+
- JSON
|
39
|
+
X-Ebay-Soa-Request-Id:
|
40
|
+
- 13c7cce2-a420-a486-d637-6877fffffe8c!Invoice!10.72.109.99![]
|
41
|
+
X-Paypal-Operation-Name:
|
42
|
+
- CreateAndSendInvoice
|
43
|
+
X-Paypal-Service-Name:
|
44
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
45
|
+
X-Paypal-Service-Version:
|
46
|
+
- 1.0.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json;charset=UTF-8
|
49
|
+
Set-Cookie:
|
50
|
+
- Apache=10.72.109.11.1359303551547337; path=/; expires=Tue, 20-Jan-43 16:19:11 GMT
|
51
|
+
Vary:
|
52
|
+
- Accept-Encoding
|
53
|
+
Transfer-Encoding:
|
54
|
+
- chunked
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-01-27T08:19:13.099-08:00\",\"ack\":\"Success\",\"correlationId\":\"bf9f7d97e2b31\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-2SMN-67VL-5T6M-KSBP\",\"invoiceNumber\":\"0063\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-2SMN-67VL-5T6M-KSBP\",\"totalAmount\":\"100000\"}"
|
58
|
+
http_version:
|
59
|
+
recorded_at: Sun, 27 Jan 2013 16:19:13 GMT
|
60
|
+
- request:
|
61
|
+
method: post
|
62
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/GetInvoiceDetails
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: "{\"invoiceID\":\"INV2-2SMN-67VL-5T6M-KSBP\",\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
66
|
+
headers:
|
67
|
+
User-Agent:
|
68
|
+
- PayPal::Payment/0.1.0
|
69
|
+
X-Paypal-Security-Userid:
|
70
|
+
- chardy_api1.gmail.com
|
71
|
+
X-Paypal-Security-Password:
|
72
|
+
- "8DTSWBZC7GDR3T4X"
|
73
|
+
X-Paypal-Security-Signature:
|
74
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
75
|
+
X-Paypal-Request-Data-Format:
|
76
|
+
- JSON
|
77
|
+
X-Paypal-Response-Data-Format:
|
78
|
+
- JSON
|
79
|
+
X-Paypal-Application-Id:
|
80
|
+
- APP-80W284485P519543T
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 200
|
84
|
+
message: OK
|
85
|
+
headers:
|
86
|
+
Date:
|
87
|
+
- Sun, 27 Jan 2013 16:19:15 GMT
|
88
|
+
Server:
|
89
|
+
- Apache-Coyote/1.1
|
90
|
+
Cache-Control:
|
91
|
+
- no-cache
|
92
|
+
X-Paypal-Message-Protocol:
|
93
|
+
- NONE
|
94
|
+
X-Paypal-Response-Data-Format:
|
95
|
+
- JSON
|
96
|
+
X-Ebay-Soa-Request-Id:
|
97
|
+
- 13c7cce3-63b0-a486-d637-6877fffffe8b!Invoice!10.72.109.99![]
|
98
|
+
X-Paypal-Operation-Name:
|
99
|
+
- GetInvoiceDetails
|
100
|
+
X-Paypal-Service-Name:
|
101
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
102
|
+
X-Paypal-Service-Version:
|
103
|
+
- 1.0.0
|
104
|
+
Content-Type:
|
105
|
+
- application/json;charset=UTF-8
|
106
|
+
Set-Cookie:
|
107
|
+
- Apache=10.72.109.11.1359303554612620; path=/; expires=Tue, 20-Jan-43 16:19:14 GMT
|
108
|
+
Vary:
|
109
|
+
- Accept-Encoding
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
body:
|
113
|
+
encoding: ASCII-8BIT
|
114
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-01-27T08:19:15.174-08:00\",\"ack\":\"Success\",\"correlationId\":\"d1dde153e374f\",\"build\":\"4120519\"},\"invoice\":{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0063\",\"itemList\":{\"item\":[{\"name\":\"iPhone 5\",\"quantity\":\"1.000\",\"unitPrice\":\"1000.00\"}]},\"currencyCode\":\"USD\",\"invoiceDate\":\"2013-01-27T12:00:00.000-08:00\",\"dueDate\":\"2013-02-26T12:00:00.000-08:00\",\"paymentTerms\":\"Net30\",\"discountAmount\":\"0.00\",\"shippingAmount\":\"0.00\"},\"invoiceDetails\":{\"status\":\"Sent\",\"totalAmount\":\"1000.00\",\"origin\":\"API\",\"createdDate\":\"2013-01-27T08:19:12.000-08:00\",\"createdBy\":\"chardy_1345003248_per@gmail.com\",\"lastUpdatedDate\":\"2013-01-27T08:19:12.000-08:00\",\"firstSentDate\":\"2013-01-27T08:19:12.000-08:00\",\"lastSentDate\":\"2013-01-27T08:19:12.000-08:00\",\"lastSentBy\":\"chardy_1345003248_per@gmail.com\"},\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-2SMN-67VL-5T6M-KSBP\"}"
|
115
|
+
http_version:
|
116
|
+
recorded_at: Sun, 27 Jan 2013 16:19:15 GMT
|
117
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,180 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/MaskInvoiceAsPaid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"invoiceID\":\"INV2-G7RE-BXWZ-2UXW-YN8G\",\"payment\":null,\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- PayPal::Payment/0.1
|
12
|
+
X-Paypal-Security-Userid:
|
13
|
+
- chardy_api1.gmail.com
|
14
|
+
X-Paypal-Security-Password:
|
15
|
+
- "8DTSWBZC7GDR3T4X"
|
16
|
+
X-Paypal-Security-Signature:
|
17
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
18
|
+
X-Paypal-Request-Data-Format:
|
19
|
+
- JSON
|
20
|
+
X-Paypal-Response-Data-Format:
|
21
|
+
- JSON
|
22
|
+
X-Paypal-Application-Id:
|
23
|
+
- APP-80W284485P519543T
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 500
|
27
|
+
message: Internal Server Error
|
28
|
+
headers:
|
29
|
+
Date:
|
30
|
+
- Wed, 06 Feb 2013 15:31:38 GMT
|
31
|
+
Server:
|
32
|
+
- Apache-Coyote/1.1
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Paypal-Message-Protocol:
|
36
|
+
- NONE
|
37
|
+
X-Paypal-Response-Data-Format:
|
38
|
+
- JSON
|
39
|
+
X-Ebay-Soa-Request-Id:
|
40
|
+
- 13cb0223-8d20-a486-d637-6877ffffeb08!Invoice!10.72.109.99![]
|
41
|
+
X-Paypal-Operation-Name:
|
42
|
+
- MaskInvoiceAsPaid
|
43
|
+
X-Paypal-Service-Name:
|
44
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
45
|
+
X-Paypal-Service-Version:
|
46
|
+
- 1.0.0
|
47
|
+
X-Paypal-Error-Response:
|
48
|
+
- "TRUE"
|
49
|
+
Content-Type:
|
50
|
+
- application/json;charset=UTF-8
|
51
|
+
Content-Length:
|
52
|
+
- "63"
|
53
|
+
Set-Cookie:
|
54
|
+
- Apache=10.72.109.11.1360164698316237; path=/; expires=Fri, 30-Jan-43 15:31:38 GMT
|
55
|
+
Vary:
|
56
|
+
- Accept-Encoding
|
57
|
+
Connection:
|
58
|
+
- close
|
59
|
+
body:
|
60
|
+
encoding: ASCII-8BIT
|
61
|
+
string: Internal server error. Please check the server logs for details
|
62
|
+
http_version:
|
63
|
+
recorded_at: Wed, 06 Feb 2013 15:31:38 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/CreateInvoice
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: "{\"invoice\":{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"itemList\":{\"item\":[{\"name\":\"iPhone 5\",\"quantity\":1,\"unitPrice\":1000.0}]},\"currencyCode\":\"USD\",\"paymentTerms\":\"Net30\"},\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
70
|
+
headers:
|
71
|
+
User-Agent:
|
72
|
+
- PayPal::Payment/0.1
|
73
|
+
X-Paypal-Security-Userid:
|
74
|
+
- chardy_api1.gmail.com
|
75
|
+
X-Paypal-Security-Password:
|
76
|
+
- "8DTSWBZC7GDR3T4X"
|
77
|
+
X-Paypal-Security-Signature:
|
78
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
79
|
+
X-Paypal-Request-Data-Format:
|
80
|
+
- JSON
|
81
|
+
X-Paypal-Response-Data-Format:
|
82
|
+
- JSON
|
83
|
+
X-Paypal-Application-Id:
|
84
|
+
- APP-80W284485P519543T
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
Date:
|
91
|
+
- Mon, 25 Feb 2013 14:29:06 GMT
|
92
|
+
Server:
|
93
|
+
- Apache-Coyote/1.1
|
94
|
+
Cache-Control:
|
95
|
+
- no-cache
|
96
|
+
X-Paypal-Message-Protocol:
|
97
|
+
- NONE
|
98
|
+
X-Paypal-Response-Data-Format:
|
99
|
+
- JSON
|
100
|
+
X-Ebay-Soa-Request-Id:
|
101
|
+
- 13d11c1c-7bd0-a486-d657-3927ffffe343!Invoice!10.72.109.101![]
|
102
|
+
X-Paypal-Operation-Name:
|
103
|
+
- CreateInvoice
|
104
|
+
X-Paypal-Service-Name:
|
105
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
106
|
+
X-Paypal-Service-Version:
|
107
|
+
- 1.0.0
|
108
|
+
Content-Type:
|
109
|
+
- application/json;charset=UTF-8
|
110
|
+
Set-Cookie:
|
111
|
+
- Apache=10.72.109.11.1361802545078753; path=/; expires=Wed, 18-Feb-43 14:29:05 GMT
|
112
|
+
Vary:
|
113
|
+
- Accept-Encoding
|
114
|
+
Transfer-Encoding:
|
115
|
+
- chunked
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-25T06:29:06.219-08:00\",\"ack\":\"Success\",\"correlationId\":\"b6abc28f1db01\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-DKZP-YC2F-L7MZ-9RKM\",\"invoiceNumber\":\"0129\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-DKZP-YC2F-L7MZ-9RKM\",\"totalAmount\":\"100000\"}"
|
119
|
+
http_version:
|
120
|
+
recorded_at: Mon, 25 Feb 2013 14:29:06 GMT
|
121
|
+
- request:
|
122
|
+
method: post
|
123
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/MarkInvoiceAsPaid
|
124
|
+
body:
|
125
|
+
encoding: UTF-8
|
126
|
+
string: "{\"invoiceID\":\"INV2-DKZP-YC2F-L7MZ-9RKM\",\"payment\":null,\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
127
|
+
headers:
|
128
|
+
User-Agent:
|
129
|
+
- PayPal::Payment/0.1
|
130
|
+
X-Paypal-Security-Userid:
|
131
|
+
- chardy_api1.gmail.com
|
132
|
+
X-Paypal-Security-Password:
|
133
|
+
- "8DTSWBZC7GDR3T4X"
|
134
|
+
X-Paypal-Security-Signature:
|
135
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
136
|
+
X-Paypal-Request-Data-Format:
|
137
|
+
- JSON
|
138
|
+
X-Paypal-Response-Data-Format:
|
139
|
+
- JSON
|
140
|
+
X-Paypal-Application-Id:
|
141
|
+
- APP-80W284485P519543T
|
142
|
+
response:
|
143
|
+
status:
|
144
|
+
code: 200
|
145
|
+
message: OK
|
146
|
+
headers:
|
147
|
+
Date:
|
148
|
+
- Mon, 25 Feb 2013 14:29:08 GMT
|
149
|
+
Server:
|
150
|
+
- Apache-Coyote/1.1
|
151
|
+
Cache-Control:
|
152
|
+
- no-cache
|
153
|
+
X-Paypal-Message-Protocol:
|
154
|
+
- NONE
|
155
|
+
X-Paypal-Response-Data-Format:
|
156
|
+
- JSON
|
157
|
+
X-Ebay-Soa-Request-Id:
|
158
|
+
- 13d11c1d-2330-a486-d661-2431ffffe31f!Invoice!10.72.109.102![]
|
159
|
+
X-Paypal-Operation-Name:
|
160
|
+
- MarkInvoiceAsPaid
|
161
|
+
X-Paypal-Service-Name:
|
162
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
163
|
+
X-Paypal-Service-Version:
|
164
|
+
- 1.0.0
|
165
|
+
X-Paypal-Error-Response:
|
166
|
+
- "TRUE"
|
167
|
+
Content-Type:
|
168
|
+
- application/json;charset=UTF-8
|
169
|
+
Set-Cookie:
|
170
|
+
- Apache=10.72.109.11.1361802547756697; path=/; expires=Wed, 18-Feb-43 14:29:07 GMT
|
171
|
+
Vary:
|
172
|
+
- Accept-Encoding
|
173
|
+
Transfer-Encoding:
|
174
|
+
- chunked
|
175
|
+
body:
|
176
|
+
encoding: ASCII-8BIT
|
177
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-25T06:29:08.243-08:00\",\"ack\":\"Failure\",\"correlationId\":\"3e04a7b61ced3\",\"build\":\"4120519\"},\"error\":[{\"errorId\":\"570067\",\"domain\":\"PLATFORM\",\"subdomain\":\"Application\",\"severity\":\"Error\",\"category\":\"Application\",\"message\":\"A draft invoice cannot be paid\"}]}"
|
178
|
+
http_version:
|
179
|
+
recorded_at: Mon, 25 Feb 2013 14:29:08 GMT
|
180
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,174 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/CreateInvoice
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"invoice\":{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"itemList\":{\"item\":[{\"name\":\"iPhone 5\",\"quantity\":1,\"unitPrice\":1000.0}]},\"currencyCode\":\"USD\",\"paymentTerms\":\"Net30\"},\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- PayPal::Payment/0.1
|
12
|
+
X-Paypal-Security-Userid:
|
13
|
+
- chardy_api1.gmail.com
|
14
|
+
X-Paypal-Security-Password:
|
15
|
+
- "8DTSWBZC7GDR3T4X"
|
16
|
+
X-Paypal-Security-Signature:
|
17
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
18
|
+
X-Paypal-Request-Data-Format:
|
19
|
+
- JSON
|
20
|
+
X-Paypal-Response-Data-Format:
|
21
|
+
- JSON
|
22
|
+
X-Paypal-Application-Id:
|
23
|
+
- APP-80W284485P519543T
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Date:
|
30
|
+
- Mon, 25 Feb 2013 03:28:14 GMT
|
31
|
+
Server:
|
32
|
+
- Apache-Coyote/1.1
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Paypal-Message-Protocol:
|
36
|
+
- NONE
|
37
|
+
X-Paypal-Response-Data-Format:
|
38
|
+
- JSON
|
39
|
+
X-Ebay-Soa-Request-Id:
|
40
|
+
- 13d0f64b-df30-a486-d637-6877ffffd7ba!Invoice!10.72.109.99![]
|
41
|
+
X-Paypal-Operation-Name:
|
42
|
+
- CreateInvoice
|
43
|
+
X-Paypal-Service-Name:
|
44
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
45
|
+
X-Paypal-Service-Version:
|
46
|
+
- 1.0.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json;charset=UTF-8
|
49
|
+
Set-Cookie:
|
50
|
+
- Apache=10.72.109.11.1361762893293227; path=/; expires=Wed, 18-Feb-43 03:28:13 GMT
|
51
|
+
Vary:
|
52
|
+
- Accept-Encoding
|
53
|
+
Transfer-Encoding:
|
54
|
+
- chunked
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-24T19:28:14.592-08:00\",\"ack\":\"Success\",\"correlationId\":\"6c063d60495b6\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-DAQG-8JAW-CHAL-TU8K\",\"invoiceNumber\":\"0125\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-DAQG-8JAW-CHAL-TU8K\",\"totalAmount\":\"100000\"}"
|
58
|
+
http_version:
|
59
|
+
recorded_at: Mon, 25 Feb 2013 03:28:14 GMT
|
60
|
+
- request:
|
61
|
+
method: post
|
62
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/CreateAndSendInvoice
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: "{\"invoice\":{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"itemList\":{\"item\":[{\"name\":\"iPhone 5\",\"quantity\":1,\"unitPrice\":1000.0}]},\"currencyCode\":\"USD\",\"paymentTerms\":\"Net30\"},\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
66
|
+
headers:
|
67
|
+
User-Agent:
|
68
|
+
- PayPal::Payment/0.1
|
69
|
+
X-Paypal-Security-Userid:
|
70
|
+
- chardy_api1.gmail.com
|
71
|
+
X-Paypal-Security-Password:
|
72
|
+
- "8DTSWBZC7GDR3T4X"
|
73
|
+
X-Paypal-Security-Signature:
|
74
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
75
|
+
X-Paypal-Request-Data-Format:
|
76
|
+
- JSON
|
77
|
+
X-Paypal-Response-Data-Format:
|
78
|
+
- JSON
|
79
|
+
X-Paypal-Application-Id:
|
80
|
+
- APP-80W284485P519543T
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 200
|
84
|
+
message: OK
|
85
|
+
headers:
|
86
|
+
Date:
|
87
|
+
- Mon, 25 Feb 2013 14:28:53 GMT
|
88
|
+
Server:
|
89
|
+
- Apache-Coyote/1.1
|
90
|
+
Cache-Control:
|
91
|
+
- no-cache
|
92
|
+
X-Paypal-Message-Protocol:
|
93
|
+
- NONE
|
94
|
+
X-Paypal-Response-Data-Format:
|
95
|
+
- JSON
|
96
|
+
X-Ebay-Soa-Request-Id:
|
97
|
+
- 13d11c19-3110-a486-d657-3927ffffe347!Invoice!10.72.109.101![]
|
98
|
+
X-Paypal-Operation-Name:
|
99
|
+
- CreateAndSendInvoice
|
100
|
+
X-Paypal-Service-Name:
|
101
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
102
|
+
X-Paypal-Service-Version:
|
103
|
+
- 1.0.0
|
104
|
+
Content-Type:
|
105
|
+
- application/json;charset=UTF-8
|
106
|
+
Set-Cookie:
|
107
|
+
- Apache=10.72.109.11.1361802531594853; path=/; expires=Wed, 18-Feb-43 14:28:51 GMT
|
108
|
+
Vary:
|
109
|
+
- Accept-Encoding
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
body:
|
113
|
+
encoding: ASCII-8BIT
|
114
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-25T06:28:53.438-08:00\",\"ack\":\"Success\",\"correlationId\":\"e5afa9f418fa9\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-9NDM-TLKJ-RRNJ-KUGL\",\"invoiceNumber\":\"0128\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-9NDM-TLKJ-RRNJ-KUGL\",\"totalAmount\":\"100000\"}"
|
115
|
+
http_version:
|
116
|
+
recorded_at: Mon, 25 Feb 2013 14:28:53 GMT
|
117
|
+
- request:
|
118
|
+
method: post
|
119
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/MarkInvoiceAsPaid
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: "{\"invoiceID\":\"INV2-9NDM-TLKJ-RRNJ-KUGL\",\"payment\":{\"method\":\"Cash\",\"date\":\"2013-02-25\"},\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
123
|
+
headers:
|
124
|
+
User-Agent:
|
125
|
+
- PayPal::Payment/0.1
|
126
|
+
X-Paypal-Security-Userid:
|
127
|
+
- chardy_api1.gmail.com
|
128
|
+
X-Paypal-Security-Password:
|
129
|
+
- "8DTSWBZC7GDR3T4X"
|
130
|
+
X-Paypal-Security-Signature:
|
131
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
132
|
+
X-Paypal-Request-Data-Format:
|
133
|
+
- JSON
|
134
|
+
X-Paypal-Response-Data-Format:
|
135
|
+
- JSON
|
136
|
+
X-Paypal-Application-Id:
|
137
|
+
- APP-80W284485P519543T
|
138
|
+
response:
|
139
|
+
status:
|
140
|
+
code: 200
|
141
|
+
message: OK
|
142
|
+
headers:
|
143
|
+
Date:
|
144
|
+
- Mon, 25 Feb 2013 14:28:55 GMT
|
145
|
+
Server:
|
146
|
+
- Apache-Coyote/1.1
|
147
|
+
Cache-Control:
|
148
|
+
- no-cache
|
149
|
+
X-Paypal-Message-Protocol:
|
150
|
+
- NONE
|
151
|
+
X-Paypal-Response-Data-Format:
|
152
|
+
- JSON
|
153
|
+
X-Ebay-Soa-Request-Id:
|
154
|
+
- 13d11c1a-0f80-a486-d657-3927ffffe346!Invoice!10.72.109.101![]
|
155
|
+
X-Paypal-Operation-Name:
|
156
|
+
- MarkInvoiceAsPaid
|
157
|
+
X-Paypal-Service-Name:
|
158
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
159
|
+
X-Paypal-Service-Version:
|
160
|
+
- 1.0.0
|
161
|
+
Content-Type:
|
162
|
+
- application/json;charset=UTF-8
|
163
|
+
Set-Cookie:
|
164
|
+
- Apache=10.72.109.11.1361802535154122; path=/; expires=Wed, 18-Feb-43 14:28:55 GMT
|
165
|
+
Vary:
|
166
|
+
- Accept-Encoding
|
167
|
+
Transfer-Encoding:
|
168
|
+
- chunked
|
169
|
+
body:
|
170
|
+
encoding: ASCII-8BIT
|
171
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-25T06:28:55.628-08:00\",\"ack\":\"Success\",\"correlationId\":\"b6fe161b1bc41\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-9NDM-TLKJ-RRNJ-KUGL\",\"invoiceNumber\":\"0128\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-9NDM-TLKJ-RRNJ-KUGL\"}"
|
172
|
+
http_version:
|
173
|
+
recorded_at: Mon, 25 Feb 2013 14:28:55 GMT
|
174
|
+
recorded_with: VCR 2.3.0
|