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,174 @@
|
|
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
|
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
|
+
- Wed, 06 Mar 2013 15:28:41 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
|
+
- 13d40519-0ea0-a486-d663-1ec3ffff076b!Invoice!10.72.109.102![]
|
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.1362583720164827; path=/; expires=Fri, 27-Feb-43 15:28:40 GMT
|
51
|
+
Vary:
|
52
|
+
- Accept-Encoding
|
53
|
+
Transfer-Encoding:
|
54
|
+
- chunked
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-03-06T07:28:41.969-08:00\",\"ack\":\"Success\",\"correlationId\":\"a9f0c0fb1687e\",\"build\":\"5312794\"},\"invoiceID\":\"INV2-CKMB-2HMY-MKCJ-6N8D\",\"invoiceNumber\":\"0139\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-CKMB-2HMY-MKCJ-6N8D\",\"totalAmount\":\"100000\"}"
|
58
|
+
http_version:
|
59
|
+
recorded_at: Wed, 06 Mar 2013 15:28:42 GMT
|
60
|
+
- request:
|
61
|
+
method: post
|
62
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/MarkInvoiceAsPaid
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: "{\"invoiceID\":\"INV2-CKMB-2HMY-MKCJ-6N8D\",\"payment\":{\"method\":\"Cash\",\"date\":\"2013-03-06\"},\"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
|
+
- Wed, 06 Mar 2013 15:28:43 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
|
+
- 13d40519-e100-a486-d630-b8e0ffff03c7!Invoice!10.72.109.99![]
|
98
|
+
X-Paypal-Operation-Name:
|
99
|
+
- MarkInvoiceAsPaid
|
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.1362583723530331; path=/; expires=Fri, 27-Feb-43 15:28:43 GMT
|
108
|
+
Vary:
|
109
|
+
- Accept-Encoding
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
body:
|
113
|
+
encoding: ASCII-8BIT
|
114
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-03-06T07:28:43.987-08:00\",\"ack\":\"Success\",\"correlationId\":\"f8b41f1916228\",\"build\":\"5312794\"},\"invoiceID\":\"INV2-CKMB-2HMY-MKCJ-6N8D\",\"invoiceNumber\":\"0139\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-CKMB-2HMY-MKCJ-6N8D\"}"
|
115
|
+
http_version:
|
116
|
+
recorded_at: Wed, 06 Mar 2013 15:28:44 GMT
|
117
|
+
- request:
|
118
|
+
method: post
|
119
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/MarkInvoiceAsRefunded
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: "{\"invoiceID\":\"INV2-CKMB-2HMY-MKCJ-6N8D\",\"refundDetail\":{\"date\":\"2013-03-06\",\"note\":\"Refunded\"},\"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
|
+
- Wed, 06 Mar 2013 15:28:45 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
|
+
- 13d4051a-5b20-a486-d663-1ec3ffff075f!Invoice!10.72.109.102![]
|
155
|
+
X-Paypal-Operation-Name:
|
156
|
+
- MarkInvoiceAsRefunded
|
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.1362583725483683; path=/; expires=Fri, 27-Feb-43 15:28:45 GMT
|
165
|
+
Vary:
|
166
|
+
- Accept-Encoding
|
167
|
+
Transfer-Encoding:
|
168
|
+
- chunked
|
169
|
+
body:
|
170
|
+
encoding: ASCII-8BIT
|
171
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-03-06T07:28:45.956-08:00\",\"ack\":\"Success\",\"correlationId\":\"aad8d6fe15d12\",\"build\":\"5312794\"},\"invoiceID\":\"INV2-CKMB-2HMY-MKCJ-6N8D\",\"invoiceNumber\":\"0139\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-CKMB-2HMY-MKCJ-6N8D\"}"
|
172
|
+
http_version:
|
173
|
+
recorded_at: Wed, 06 Mar 2013 15:28:46 GMT
|
174
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,231 @@
|
|
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:27:20 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
|
+
- 13d0f63e-c8c0-a486-d661-2431ffffe3eb!Invoice!10.72.109.102![]
|
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.1361762839686122; path=/; expires=Wed, 18-Feb-43 03:27:19 GMT
|
51
|
+
Vary:
|
52
|
+
- Accept-Encoding
|
53
|
+
Transfer-Encoding:
|
54
|
+
- chunked
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-24T19:27:20.841-08:00\",\"ack\":\"Success\",\"correlationId\":\"6464fbd93f098\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-YW9Y-VTT3-7FMH-R2QY\",\"invoiceNumber\":\"0123\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-YW9Y-VTT3-7FMH-R2QY\",\"totalAmount\":\"100000\"}"
|
58
|
+
http_version:
|
59
|
+
recorded_at: Mon, 25 Feb 2013 03:27:20 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:46:45 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
|
+
- 13d11d1e-d6e0-a486-d661-2431ffffe31a!Invoice!10.72.109.102![]
|
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.1361803603303811; path=/; expires=Wed, 18-Feb-43 14:46:43 GMT
|
108
|
+
Vary:
|
109
|
+
- Accept-Encoding
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
body:
|
113
|
+
encoding: ASCII-8BIT
|
114
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-25T06:46:45.087-08:00\",\"ack\":\"Success\",\"correlationId\":\"6a8a98531f18b\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-2JW8-B2ZQ-9LJF-JZJN\",\"invoiceNumber\":\"0133\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-2JW8-B2ZQ-9LJF-JZJN\",\"totalAmount\":\"100000\"}"
|
115
|
+
http_version:
|
116
|
+
recorded_at: Mon, 25 Feb 2013 14:46:45 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-2JW8-B2ZQ-9LJF-JZJN\",\"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:46:46 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
|
+
- 13d11d1f-9d40-a486-d657-3927ffffe340!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.1361803606477955; path=/; expires=Wed, 18-Feb-43 14:46:46 GMT
|
165
|
+
Vary:
|
166
|
+
- Accept-Encoding
|
167
|
+
Transfer-Encoding:
|
168
|
+
- chunked
|
169
|
+
body:
|
170
|
+
encoding: ASCII-8BIT
|
171
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-25T06:46:46.936-08:00\",\"ack\":\"Success\",\"correlationId\":\"b22783ce1e56b\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-2JW8-B2ZQ-9LJF-JZJN\",\"invoiceNumber\":\"0133\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-2JW8-B2ZQ-9LJF-JZJN\"}"
|
172
|
+
http_version:
|
173
|
+
recorded_at: Mon, 25 Feb 2013 14:46:47 GMT
|
174
|
+
- request:
|
175
|
+
method: post
|
176
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/MarkInvoiceAsUnpaid
|
177
|
+
body:
|
178
|
+
encoding: UTF-8
|
179
|
+
string: "{\"invoiceID\":\"INV2-2JW8-B2ZQ-9LJF-JZJN\",\"requestEnvelope\":{\"errorLanguage\":\"en_US\",\"detailLevel\":\"ReturnAll\"}}"
|
180
|
+
headers:
|
181
|
+
User-Agent:
|
182
|
+
- PayPal::Payment/0.1
|
183
|
+
X-Paypal-Security-Userid:
|
184
|
+
- chardy_api1.gmail.com
|
185
|
+
X-Paypal-Security-Password:
|
186
|
+
- "8DTSWBZC7GDR3T4X"
|
187
|
+
X-Paypal-Security-Signature:
|
188
|
+
- AG-8mOpuFhFyFOYHlaTUYn3Syf15AWJKRnfHMVsmCtC3DK51-ENEPqLS
|
189
|
+
X-Paypal-Request-Data-Format:
|
190
|
+
- JSON
|
191
|
+
X-Paypal-Response-Data-Format:
|
192
|
+
- JSON
|
193
|
+
X-Paypal-Application-Id:
|
194
|
+
- APP-80W284485P519543T
|
195
|
+
response:
|
196
|
+
status:
|
197
|
+
code: 200
|
198
|
+
message: OK
|
199
|
+
headers:
|
200
|
+
Date:
|
201
|
+
- Mon, 25 Feb 2013 14:46:48 GMT
|
202
|
+
Server:
|
203
|
+
- Apache-Coyote/1.1
|
204
|
+
Cache-Control:
|
205
|
+
- no-cache
|
206
|
+
X-Paypal-Message-Protocol:
|
207
|
+
- NONE
|
208
|
+
X-Paypal-Response-Data-Format:
|
209
|
+
- JSON
|
210
|
+
X-Ebay-Soa-Request-Id:
|
211
|
+
- 13d11d20-0e00-a486-d637-6877ffffd6e5!Invoice!10.72.109.99![]
|
212
|
+
X-Paypal-Operation-Name:
|
213
|
+
- MarkInvoiceAsUnpaid
|
214
|
+
X-Paypal-Service-Name:
|
215
|
+
- "{http://svcs.paypal.com/types/pt}Invoice"
|
216
|
+
X-Paypal-Service-Version:
|
217
|
+
- 1.0.0
|
218
|
+
Content-Type:
|
219
|
+
- application/json;charset=UTF-8
|
220
|
+
Set-Cookie:
|
221
|
+
- Apache=10.72.109.11.1361803608282122; path=/; expires=Wed, 18-Feb-43 14:46:48 GMT
|
222
|
+
Vary:
|
223
|
+
- Accept-Encoding
|
224
|
+
Transfer-Encoding:
|
225
|
+
- chunked
|
226
|
+
body:
|
227
|
+
encoding: ASCII-8BIT
|
228
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-25T06:46:48.754-08:00\",\"ack\":\"Success\",\"correlationId\":\"6304bda9229fa\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-2JW8-B2ZQ-9LJF-JZJN\",\"invoiceNumber\":\"0133\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-2JW8-B2ZQ-9LJF-JZJN\"}"
|
229
|
+
http_version:
|
230
|
+
recorded_at: Mon, 25 Feb 2013 14:46:48 GMT
|
231
|
+
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
|
+
- Wed, 06 Feb 2013 15:40:49 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
|
+
- 13cb02a9-e120-a486-d657-3927fffff959!Invoice!10.72.109.101![]
|
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.1360165248524753; path=/; expires=Fri, 30-Jan-43 15:40:48 GMT
|
51
|
+
Vary:
|
52
|
+
- Accept-Encoding
|
53
|
+
Transfer-Encoding:
|
54
|
+
- chunked
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-06T07:40:49.638-08:00\",\"ack\":\"Success\",\"correlationId\":\"8bf33e77a98b5\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-7MA7-L5TK-69FE-N5NB\",\"invoiceNumber\":\"0116\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-7MA7-L5TK-69FE-N5NB\",\"totalAmount\":\"100000\"}"
|
58
|
+
http_version:
|
59
|
+
recorded_at: Wed, 06 Feb 2013 15:40:49 GMT
|
60
|
+
- request:
|
61
|
+
method: post
|
62
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/CreateInvoice
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: "{\"invoice\":{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"itemList\":{\"item\":[{\"name\":\"iPad mini\",\"quantity\":2,\"unitPrice\":300.0}]},\"currencyCode\":\"AUD\",\"paymentTerms\":\"Net10\"},\"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
|
+
- Wed, 06 Feb 2013 15:40:52 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
|
+
- 13cb02aa-8000-a486-d637-6877ffffeafc!Invoice!10.72.109.99![]
|
98
|
+
X-Paypal-Operation-Name:
|
99
|
+
- CreateInvoice
|
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.1360165251065714; path=/; expires=Fri, 30-Jan-43 15:40:51 GMT
|
108
|
+
Vary:
|
109
|
+
- Accept-Encoding
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
body:
|
113
|
+
encoding: ASCII-8BIT
|
114
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-06T07:40:52.311-08:00\",\"ack\":\"Success\",\"correlationId\":\"6e4b57a4abd03\",\"build\":\"4120519\"},\"invoiceID\":\"INV2-2YC6-SAAJ-FPSE-K7VH\",\"invoiceNumber\":\"0117\",\"invoiceURL\":\"https:\\/\\/www.sandbox.paypal.com\\/us\\/cgi-bin\\/?cmd=_inv-details&id=INV2-2YC6-SAAJ-FPSE-K7VH\",\"totalAmount\":\"60000\"}"
|
115
|
+
http_version:
|
116
|
+
recorded_at: Wed, 06 Feb 2013 15:40:52 GMT
|
117
|
+
- request:
|
118
|
+
method: post
|
119
|
+
uri: https://svcs.sandbox.paypal.com/Invoice/SearchInvoices
|
120
|
+
body:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: "{\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"parameters\":{\"currencyCode\":\"AUD\"},\"page\":1,\"pageSize\":10,\"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
|
+
- Wed, 06 Feb 2013 15:41:00 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
|
+
- 13cb02ab-2cf0-a486-d637-6877ffffeafb!Invoice!10.72.109.99![]
|
155
|
+
X-Paypal-Operation-Name:
|
156
|
+
- SearchInvoices
|
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.1360165253833524; path=/; expires=Fri, 30-Jan-43 15:40:53 GMT
|
165
|
+
Vary:
|
166
|
+
- Accept-Encoding
|
167
|
+
Transfer-Encoding:
|
168
|
+
- chunked
|
169
|
+
body:
|
170
|
+
encoding: ASCII-8BIT
|
171
|
+
string: "{\"responseEnvelope\":{\"timestamp\":\"2013-02-06T07:41:00.484-08:00\",\"ack\":\"Success\",\"correlationId\":\"969dbebbaa7d4\",\"build\":\"4120519\"},\"count\":\"8\",\"invoiceList\":{\"invoice\":[{\"invoiceID\":\"INV2-2YC6-SAAJ-FPSE-K7VH\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0117\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"},{\"invoiceID\":\"INV2-4KDV-NZGP-553K-9YEW\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0115\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"},{\"invoiceID\":\"INV2-KGYW-EUR7-L387-ADXB\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0113\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"},{\"invoiceID\":\"INV2-PSRP-5AWX-V2RV-2DPX\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0111\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"},{\"invoiceID\":\"INV2-PNC3-B6FQ-VZ7K-7AF8\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0109\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"},{\"invoiceID\":\"INV2-2HWF-TZDQ-EFXV-CML5\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0107\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"},{\"invoiceID\":\"INV2-L44W-ZN39-PLKH-WHZW\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0105\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"},{\"invoiceID\":\"INV2-BUSG-SBQQ-ZTDZ-858K\",\"merchantEmail\":\"chardy_1345003248_per@gmail.com\",\"payerEmail\":\"chardy_1345003165_per@gmail.com\",\"number\":\"0103\",\"totalAmount\":\"600.00\",\"currencyCode\":\"AUD\",\"invoiceDate\":\"2013-02-06T12:00:00.000-08:00\",\"dueDate\":\"2013-02-16T12:00:00.000-08:00\",\"status\":\"Draft\",\"origin\":\"API\"}]},\"page\":\"1\",\"hasNextPage\":\"false\",\"hasPreviousPage\":\"false\"}"
|
172
|
+
http_version:
|
173
|
+
recorded_at: Wed, 06 Feb 2013 15:41:01 GMT
|
174
|
+
recorded_with: VCR 2.3.0
|