vaulted_billing 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +19 -0
- data/lib/vaulted_billing/gateways/bogus.rb +2 -0
- data/lib/vaulted_billing/version.rb +1 -1
- data/spec/certification/ipcommerce/README.md +9 -0
- data/spec/certification/ipcommerce/TODO.md +1 -0
- data/spec/certification/ipcommerce/host_capture_ecommerce.rb +318 -0
- data/spec/certification/ipcommerce/ipcommerce_transaction.rb +28 -0
- data/spec/certification/ipcommerce/terminal_capture_ecommerce.rb +298 -0
- data/spec/config.example.yml +18 -0
- data/spec/factories/credit_cards.rb +38 -0
- data/spec/factories/customers.rb +7 -0
- data/spec/factories/sequences.rb +22 -0
- data/spec/fixtures/net/authorize_net_cim/add_customer/failure.yml +38 -0
- data/spec/fixtures/net/authorize_net_cim/add_customer/success.yml +39 -0
- data/spec/fixtures/net/authorize_net_cim/add_customer_credit_card/failure.yml +83 -0
- data/spec/fixtures/net/authorize_net_cim/add_customer_credit_card/success.yml +81 -0
- data/spec/fixtures/net/authorize_net_cim/authorize/failure.yml +121 -0
- data/spec/fixtures/net/authorize_net_cim/authorize/success.yml +121 -0
- data/spec/fixtures/net/authorize_net_cim/capture/failure.yml +161 -0
- data/spec/fixtures/net/authorize_net_cim/capture/success.yml +160 -0
- data/spec/fixtures/net/authorize_net_cim/purchase/failure.yml +122 -0
- data/spec/fixtures/net/authorize_net_cim/purchase/success.yml +122 -0
- data/spec/fixtures/net/authorize_net_cim/refund/failure.yml +123 -0
- data/spec/fixtures/net/authorize_net_cim/refund/failure_2.yml +43 -0
- data/spec/fixtures/net/authorize_net_cim/remove_customer/failure.yml +76 -0
- data/spec/fixtures/net/authorize_net_cim/remove_customer/success.yml +75 -0
- data/spec/fixtures/net/authorize_net_cim/remove_customer_credit_card/failure.yml +156 -0
- data/spec/fixtures/net/authorize_net_cim/remove_customer_credit_card/success.yml +118 -0
- data/spec/fixtures/net/authorize_net_cim/update_customer/failure.yml +77 -0
- data/spec/fixtures/net/authorize_net_cim/update_customer/success.yml +76 -0
- data/spec/fixtures/net/authorize_net_cim/update_customer_credit_card/failure.yml +125 -0
- data/spec/fixtures/net/authorize_net_cim/update_customer_credit_card/success.yml +124 -0
- data/spec/fixtures/net/authorize_net_cim/void/success.yml +159 -0
- data/spec/fixtures/net/ipcommerce/add_customer_credit_card/failure.yml +53 -0
- data/spec/fixtures/net/ipcommerce/add_customer_credit_card/success.yml +103 -0
- data/spec/fixtures/net/ipcommerce/authorize/existing/failure.yml +51 -0
- data/spec/fixtures/net/ipcommerce/authorize/existing/success.yml +105 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/bad_format.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/issuer_not_certified.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/match.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/no_match.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/no_response_from_card_association.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/not_included.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/not_sent.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/avs/not_verified.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/invalid.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/issuer_not_certified.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/no_code_present.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/no_match.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/no_response.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/not_applicable.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/not_processed.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/cvv/should_have_been_present.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/failure.yml +53 -0
- data/spec/fixtures/net/ipcommerce/authorize/new/success.yml +53 -0
- data/spec/fixtures/net/ipcommerce/capture/failure.yml +78 -0
- data/spec/fixtures/net/ipcommerce/capture/invalid.yml +78 -0
- data/spec/fixtures/net/ipcommerce/capture/success.yml +78 -0
- data/spec/fixtures/net/ipcommerce/failover.yml +53 -0
- data/spec/fixtures/net/ipcommerce/purchase/existing/failure.yml +51 -0
- data/spec/fixtures/net/ipcommerce/purchase/existing/success.yml +105 -0
- data/spec/fixtures/net/ipcommerce/purchase/new/failure.yml +53 -0
- data/spec/fixtures/net/ipcommerce/purchase/new/success.yml +53 -0
- data/spec/fixtures/net/ipcommerce/refund/failure.yml +78 -0
- data/spec/fixtures/net/ipcommerce/refund/success.yml +80 -0
- data/spec/fixtures/net/ipcommerce/update_customer_credit_card/failure.yml +53 -0
- data/spec/fixtures/net/ipcommerce/update_customer_credit_card/success.yml +103 -0
- data/spec/fixtures/net/ipcommerce/void/failure.yml +78 -0
- data/spec/fixtures/net/ipcommerce/void/success.yml +78 -0
- data/spec/fixtures/net/nmi_customer_vault/add_customer_credit_card/failure.yml +26 -0
- data/spec/fixtures/net/nmi_customer_vault/add_customer_credit_card/success.yml +26 -0
- data/spec/fixtures/net/nmi_customer_vault/authorize/decline.yml +51 -0
- data/spec/fixtures/net/nmi_customer_vault/authorize/success.yml +51 -0
- data/spec/fixtures/net/nmi_customer_vault/capture/failure.yml +76 -0
- data/spec/fixtures/net/nmi_customer_vault/capture/success.yml +76 -0
- data/spec/fixtures/net/nmi_customer_vault/purchase/decline.yml +51 -0
- data/spec/fixtures/net/nmi_customer_vault/purchase/success.yml +51 -0
- data/spec/fixtures/net/nmi_customer_vault/refund/failure.yml +101 -0
- data/spec/fixtures/net/nmi_customer_vault/remove_customer_credit_card/failure.yml +26 -0
- data/spec/fixtures/net/nmi_customer_vault/remove_customer_credit_card/success.yml +51 -0
- data/spec/fixtures/net/nmi_customer_vault/update_customer_credit_card/success.yml +51 -0
- data/spec/fixtures/net/nmi_customer_vault/void/failure.yml +26 -0
- data/spec/fixtures/net/nmi_customer_vault/void/success.yml +76 -0
- data/spec/models/vaulted_billing/configuration_spec.rb +62 -0
- data/spec/models/vaulted_billing/core_ext/hash_spec.rb +47 -0
- data/spec/models/vaulted_billing/credit_card_spec.rb +61 -0
- data/spec/models/vaulted_billing/gateway_spec.rb +115 -0
- data/spec/models/vaulted_billing/http_spec.rb +154 -0
- data/spec/models/vaulted_billing/transaction_spec.rb +60 -0
- data/spec/models/vaulted_billing_spec.rb +16 -0
- data/spec/requests/authorize_net_cim_spec.rb +506 -0
- data/spec/requests/bogus_spec.rb +144 -0
- data/spec/requests/ipcommerce_spec.rb +518 -0
- data/spec/requests/nmi_customer_vault_spec.rb +390 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/support/_vaulted_billing.rb +8 -0
- data/spec/support/factory_girl.rb +5 -0
- data/spec/support/faker.rb +1 -0
- data/spec/support/helpers.rb +46 -0
- data/spec/support/logging.rb +2 -0
- data/spec/support/test_exception.rb +1 -0
- data/spec/support/vcr.rb +49 -0
- data/spec/support/webmock.rb +7 -0
- metadata +312 -37
@@ -0,0 +1,122 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileRequest
|
7
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
8
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
9
|
+
\ </merchantAuthentication>\n <profile>\n <email>leone@koch.name</email>\n
|
10
|
+
\ </profile>\n</createCustomerProfileRequest>\n"
|
11
|
+
headers:
|
12
|
+
content-type:
|
13
|
+
- text/xml
|
14
|
+
user-agent:
|
15
|
+
- vaulted_billing/1.0.2
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Wed, 10 Aug 2011 17:56:56 GMT
|
23
|
+
server:
|
24
|
+
- Microsoft-IIS/6.0
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
x-aspnet-version:
|
28
|
+
- 2.0.50727
|
29
|
+
cache-control:
|
30
|
+
- private
|
31
|
+
content-type:
|
32
|
+
- text/xml; charset=utf-8
|
33
|
+
content-length:
|
34
|
+
- '504'
|
35
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileResponse
|
36
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
37
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerProfileId>4309865</customerProfileId><customerPaymentProfileIdList
|
38
|
+
/><customerShippingAddressIdList /><validationDirectResponseList /></createCustomerProfileResponse>"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
42
|
+
method: :post
|
43
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerPaymentProfileRequest
|
45
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
46
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
47
|
+
\ </merchantAuthentication>\n <customerProfileId>4309865</customerProfileId>\n
|
48
|
+
\ <paymentProfile>\n <billTo>\n <firstName>Fidel</firstName>\n <lastName>Waters</lastName>\n
|
49
|
+
\ <address>59659 Zita Springs</address>\n <city>West Raleigh</city>\n
|
50
|
+
\ <state>Tennessee</state>\n <zip>59580-4169</zip>\n <country>US</country>\n
|
51
|
+
\ <phoneNumber>411.444.2989 x5410</phoneNumber>\n </billTo>\n <payment>\n
|
52
|
+
\ <creditCard>\n <cardNumber>5230002140732287</cardNumber>\n <expirationDate>2012-08</expirationDate>\n
|
53
|
+
\ </creditCard>\n </payment>\n </paymentProfile>\n</createCustomerPaymentProfileRequest>\n"
|
54
|
+
headers:
|
55
|
+
content-type:
|
56
|
+
- text/xml
|
57
|
+
user-agent:
|
58
|
+
- vaulted_billing/1.0.2
|
59
|
+
response: !ruby/struct:VCR::Response
|
60
|
+
status: !ruby/struct:VCR::ResponseStatus
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
date:
|
65
|
+
- Wed, 10 Aug 2011 17:56:58 GMT
|
66
|
+
server:
|
67
|
+
- Microsoft-IIS/6.0
|
68
|
+
x-powered-by:
|
69
|
+
- ASP.NET
|
70
|
+
x-aspnet-version:
|
71
|
+
- 2.0.50727
|
72
|
+
cache-control:
|
73
|
+
- private
|
74
|
+
content-type:
|
75
|
+
- text/xml; charset=utf-8
|
76
|
+
content-length:
|
77
|
+
- '435'
|
78
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerPaymentProfileResponse
|
79
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
80
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerPaymentProfileId>3802876</customerPaymentProfileId></createCustomerPaymentProfileResponse>"
|
81
|
+
http_version: '1.1'
|
82
|
+
- !ruby/struct:VCR::HTTPInteraction
|
83
|
+
request: !ruby/struct:VCR::Request
|
84
|
+
method: :post
|
85
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
86
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileTransactionRequest
|
87
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
88
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
89
|
+
\ </merchantAuthentication>\n <transaction>\n <profileTransAuthCapture>\n
|
90
|
+
\ <amount>5.0</amount>\n <customerProfileId>4309865</customerProfileId>\n
|
91
|
+
\ <customerPaymentProfileId>3802876</customerPaymentProfileId>\n </profileTransAuthCapture>\n
|
92
|
+
\ </transaction>\n <extraOptions></extraOptions>\n</createCustomerProfileTransactionRequest>\n"
|
93
|
+
headers:
|
94
|
+
content-type:
|
95
|
+
- text/xml
|
96
|
+
user-agent:
|
97
|
+
- vaulted_billing/1.0.2
|
98
|
+
response: !ruby/struct:VCR::Response
|
99
|
+
status: !ruby/struct:VCR::ResponseStatus
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
date:
|
104
|
+
- Wed, 10 Aug 2011 17:56:59 GMT
|
105
|
+
server:
|
106
|
+
- Microsoft-IIS/6.0
|
107
|
+
x-powered-by:
|
108
|
+
- ASP.NET
|
109
|
+
x-aspnet-version:
|
110
|
+
- 2.0.50727
|
111
|
+
cache-control:
|
112
|
+
- private
|
113
|
+
content-type:
|
114
|
+
- text/xml; charset=utf-8
|
115
|
+
content-length:
|
116
|
+
- '702'
|
117
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileTransactionResponse
|
118
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
119
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><directResponse>1,1,1,This
|
120
|
+
transaction has been approved.,TYA20Y,Y,2162011597,,,5.00,CC,auth_capture,,Fidel,Waters,,59659
|
121
|
+
Zita Springs,West Raleigh,Tennessee,59580-4169,US,411.444.2989 x5410,,leone@koch.name,,,,,,,,,,,,,,C28F503D429A53BB852936FD28751779,,2,,,,,,,,,,,XXXX2287,MasterCard,,,,,,,,,,,,,,,,</directResponse></createCustomerProfileTransactionResponse>"
|
122
|
+
http_version: '1.1'
|
@@ -0,0 +1,123 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileRequest
|
7
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
8
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
9
|
+
\ </merchantAuthentication>\n <profile>\n <email>emmy.hills@schuppe.net</email>\n
|
10
|
+
\ </profile>\n</createCustomerProfileRequest>\n"
|
11
|
+
headers:
|
12
|
+
content-type:
|
13
|
+
- text/xml
|
14
|
+
user-agent:
|
15
|
+
- vaulted_billing/1.0.2
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Wed, 10 Aug 2011 18:05:24 GMT
|
23
|
+
server:
|
24
|
+
- Microsoft-IIS/6.0
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
x-aspnet-version:
|
28
|
+
- 2.0.50727
|
29
|
+
cache-control:
|
30
|
+
- private
|
31
|
+
content-type:
|
32
|
+
- text/xml; charset=utf-8
|
33
|
+
content-length:
|
34
|
+
- '504'
|
35
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileResponse
|
36
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
37
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerProfileId>4310188</customerProfileId><customerPaymentProfileIdList
|
38
|
+
/><customerShippingAddressIdList /><validationDirectResponseList /></createCustomerProfileResponse>"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
42
|
+
method: :post
|
43
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerPaymentProfileRequest
|
45
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
46
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
47
|
+
\ </merchantAuthentication>\n <customerProfileId>4310188</customerProfileId>\n
|
48
|
+
\ <paymentProfile>\n <billTo>\n <firstName>Zackery</firstName>\n <lastName>Sporer</lastName>\n
|
49
|
+
\ <address>93985 Bahringer Corner</address>\n <city>Lake Raymondside</city>\n
|
50
|
+
\ <state>West Virginia</state>\n <zip>71187</zip>\n <country>US</country>\n
|
51
|
+
\ <phoneNumber>561-048-4418</phoneNumber>\n </billTo>\n <payment>\n
|
52
|
+
\ <creditCard>\n <cardNumber>348690499380524</cardNumber>\n <expirationDate>2012-08</expirationDate>\n
|
53
|
+
\ </creditCard>\n </payment>\n </paymentProfile>\n</createCustomerPaymentProfileRequest>\n"
|
54
|
+
headers:
|
55
|
+
content-type:
|
56
|
+
- text/xml
|
57
|
+
user-agent:
|
58
|
+
- vaulted_billing/1.0.2
|
59
|
+
response: !ruby/struct:VCR::Response
|
60
|
+
status: !ruby/struct:VCR::ResponseStatus
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
date:
|
65
|
+
- Wed, 10 Aug 2011 18:05:26 GMT
|
66
|
+
server:
|
67
|
+
- Microsoft-IIS/6.0
|
68
|
+
x-powered-by:
|
69
|
+
- ASP.NET
|
70
|
+
x-aspnet-version:
|
71
|
+
- 2.0.50727
|
72
|
+
cache-control:
|
73
|
+
- private
|
74
|
+
content-type:
|
75
|
+
- text/xml; charset=utf-8
|
76
|
+
content-length:
|
77
|
+
- '435'
|
78
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerPaymentProfileResponse
|
79
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
80
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerPaymentProfileId>3803001</customerPaymentProfileId></createCustomerPaymentProfileResponse>"
|
81
|
+
http_version: '1.1'
|
82
|
+
- !ruby/struct:VCR::HTTPInteraction
|
83
|
+
request: !ruby/struct:VCR::Request
|
84
|
+
method: :post
|
85
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
86
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileTransactionRequest
|
87
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
88
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
89
|
+
\ </merchantAuthentication>\n <transaction>\n <profileTransAuthCapture>\n
|
90
|
+
\ <amount>10.0</amount>\n <customerProfileId>4310188</customerProfileId>\n
|
91
|
+
\ <customerPaymentProfileId>3803001</customerPaymentProfileId>\n </profileTransAuthCapture>\n
|
92
|
+
\ </transaction>\n <extraOptions></extraOptions>\n</createCustomerProfileTransactionRequest>\n"
|
93
|
+
headers:
|
94
|
+
content-type:
|
95
|
+
- text/xml
|
96
|
+
user-agent:
|
97
|
+
- vaulted_billing/1.0.2
|
98
|
+
response: !ruby/struct:VCR::Response
|
99
|
+
status: !ruby/struct:VCR::ResponseStatus
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
date:
|
104
|
+
- Wed, 10 Aug 2011 18:05:27 GMT
|
105
|
+
server:
|
106
|
+
- Microsoft-IIS/6.0
|
107
|
+
x-powered-by:
|
108
|
+
- ASP.NET
|
109
|
+
x-aspnet-version:
|
110
|
+
- 2.0.50727
|
111
|
+
cache-control:
|
112
|
+
- private
|
113
|
+
content-type:
|
114
|
+
- text/xml; charset=utf-8
|
115
|
+
content-length:
|
116
|
+
- '719'
|
117
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileTransactionResponse
|
118
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
119
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><directResponse>1,1,1,This
|
120
|
+
transaction has been approved.,W5987O,Y,2162013263,,,10.00,CC,auth_capture,,Zackery,Sporer,,93985
|
121
|
+
Bahringer Corner,Lake Raymondside,West Virginia,71187,US,561-048-4418,,emmy.hills@schuppe.net,,,,,,,,,,,,,,85C8DB3A9D5FC03E418F5A4DB2652AEA,,2,,,,,,,,,,,XXXX0524,American
|
122
|
+
Express,,,,,,,,,,,,,,,,</directResponse></createCustomerProfileTransactionResponse>"
|
123
|
+
http_version: '1.1'
|
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileTransactionRequest
|
7
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
8
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
9
|
+
\ </merchantAuthentication>\n <transaction>\n <profileTransRefund>\n <amount>12.0</amount>\n
|
10
|
+
\ <creditCardNumberMasked>XXXX0524</creditCardNumberMasked>\n <transId>2162013263</transId>\n
|
11
|
+
\ </profileTransRefund>\n </transaction>\n <extraOptions></extraOptions>\n</createCustomerProfileTransactionRequest>\n"
|
12
|
+
headers:
|
13
|
+
content-type:
|
14
|
+
- text/xml
|
15
|
+
user-agent:
|
16
|
+
- vaulted_billing/1.0.2
|
17
|
+
response: !ruby/struct:VCR::Response
|
18
|
+
status: !ruby/struct:VCR::ResponseStatus
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
date:
|
23
|
+
- Wed, 10 Aug 2011 18:05:28 GMT
|
24
|
+
server:
|
25
|
+
- Microsoft-IIS/6.0
|
26
|
+
x-powered-by:
|
27
|
+
- ASP.NET
|
28
|
+
x-aspnet-version:
|
29
|
+
- 2.0.50727
|
30
|
+
cache-control:
|
31
|
+
- private
|
32
|
+
content-type:
|
33
|
+
- text/xml; charset=utf-8
|
34
|
+
content-length:
|
35
|
+
- '805'
|
36
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileTransactionResponse
|
37
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
38
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Error</resultCode><message><code>E00027</code><text>The
|
39
|
+
referenced transaction does not meet the criteria for issuing a credit.</text></message></messages><directResponse>3,2,54,The
|
40
|
+
referenced transaction does not meet the criteria for issuing a credit.,,P,0,,,12.00,CC,credit,,Zackery,Sporer,,93985
|
41
|
+
Bahringer Corner,Lake Raymondside,West Virginia,71187,US,561-048-4418,,emmy.hills@schuppe.net,,,,,,,,,,,,,,A6618D6A12AA1C7F12D82EE98EF3B139,,,,,,,,,,,,,XXXX0524,American
|
42
|
+
Express,,,,,,,,,,,,,,,,</directResponse></createCustomerProfileTransactionResponse>"
|
43
|
+
http_version: '1.1'
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileRequest
|
7
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
8
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
9
|
+
\ </merchantAuthentication>\n <profile>\n <email>maria_kshlerin@bergnaum.com</email>\n
|
10
|
+
\ </profile>\n</createCustomerProfileRequest>\n"
|
11
|
+
headers:
|
12
|
+
content-type:
|
13
|
+
- text/xml
|
14
|
+
user-agent:
|
15
|
+
- vaulted_billing/1.0.2
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Wed, 10 Aug 2011 17:56:26 GMT
|
23
|
+
server:
|
24
|
+
- Microsoft-IIS/6.0
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
x-aspnet-version:
|
28
|
+
- 2.0.50727
|
29
|
+
cache-control:
|
30
|
+
- private
|
31
|
+
content-type:
|
32
|
+
- text/xml; charset=utf-8
|
33
|
+
content-length:
|
34
|
+
- '504'
|
35
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileResponse
|
36
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
37
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerProfileId>4309774</customerProfileId><customerPaymentProfileIdList
|
38
|
+
/><customerShippingAddressIdList /><validationDirectResponseList /></createCustomerProfileResponse>"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
42
|
+
method: :post
|
43
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deleteCustomerProfileRequest
|
45
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
46
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
47
|
+
\ </merchantAuthentication>\n <customerProfileId>1234567890</customerProfileId>\n</deleteCustomerProfileRequest>\n"
|
48
|
+
headers:
|
49
|
+
content-type:
|
50
|
+
- text/xml
|
51
|
+
user-agent:
|
52
|
+
- vaulted_billing/1.0.2
|
53
|
+
response: !ruby/struct:VCR::Response
|
54
|
+
status: !ruby/struct:VCR::ResponseStatus
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
date:
|
59
|
+
- Wed, 10 Aug 2011 17:56:27 GMT
|
60
|
+
server:
|
61
|
+
- Microsoft-IIS/6.0
|
62
|
+
x-powered-by:
|
63
|
+
- ASP.NET
|
64
|
+
x-aspnet-version:
|
65
|
+
- 2.0.50727
|
66
|
+
cache-control:
|
67
|
+
- private
|
68
|
+
content-type:
|
69
|
+
- text/xml; charset=utf-8
|
70
|
+
content-length:
|
71
|
+
- '380'
|
72
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><deleteCustomerProfileResponse
|
73
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
74
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Error</resultCode><message><code>E00040</code><text>The
|
75
|
+
record cannot be found.</text></message></messages></deleteCustomerProfileResponse>"
|
76
|
+
http_version: '1.1'
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileRequest
|
7
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
8
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
9
|
+
\ </merchantAuthentication>\n <profile>\n <email>joany@moore.biz</email>\n
|
10
|
+
\ </profile>\n</createCustomerProfileRequest>\n"
|
11
|
+
headers:
|
12
|
+
content-type:
|
13
|
+
- text/xml
|
14
|
+
user-agent:
|
15
|
+
- vaulted_billing/1.0.2
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Wed, 10 Aug 2011 17:56:23 GMT
|
23
|
+
server:
|
24
|
+
- Microsoft-IIS/6.0
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
x-aspnet-version:
|
28
|
+
- 2.0.50727
|
29
|
+
cache-control:
|
30
|
+
- private
|
31
|
+
content-type:
|
32
|
+
- text/xml; charset=utf-8
|
33
|
+
content-length:
|
34
|
+
- '504'
|
35
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileResponse
|
36
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
37
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerProfileId>4309767</customerProfileId><customerPaymentProfileIdList
|
38
|
+
/><customerShippingAddressIdList /><validationDirectResponseList /></createCustomerProfileResponse>"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
42
|
+
method: :post
|
43
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deleteCustomerProfileRequest
|
45
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
46
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
47
|
+
\ </merchantAuthentication>\n <customerProfileId>4309767</customerProfileId>\n</deleteCustomerProfileRequest>\n"
|
48
|
+
headers:
|
49
|
+
content-type:
|
50
|
+
- text/xml
|
51
|
+
user-agent:
|
52
|
+
- vaulted_billing/1.0.2
|
53
|
+
response: !ruby/struct:VCR::Response
|
54
|
+
status: !ruby/struct:VCR::ResponseStatus
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
date:
|
59
|
+
- Wed, 10 Aug 2011 17:56:25 GMT
|
60
|
+
server:
|
61
|
+
- Microsoft-IIS/6.0
|
62
|
+
x-powered-by:
|
63
|
+
- ASP.NET
|
64
|
+
x-aspnet-version:
|
65
|
+
- 2.0.50727
|
66
|
+
cache-control:
|
67
|
+
- private
|
68
|
+
content-type:
|
69
|
+
- text/xml; charset=utf-8
|
70
|
+
content-length:
|
71
|
+
- '361'
|
72
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><deleteCustomerProfileResponse
|
73
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
74
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages></deleteCustomerProfileResponse>"
|
75
|
+
http_version: '1.1'
|
@@ -0,0 +1,156 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerProfileRequest
|
7
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
8
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
9
|
+
\ </merchantAuthentication>\n <profile>\n <email>ken@casperoberbrunner.net</email>\n
|
10
|
+
\ </profile>\n</createCustomerProfileRequest>\n"
|
11
|
+
headers:
|
12
|
+
content-type:
|
13
|
+
- text/xml
|
14
|
+
user-agent:
|
15
|
+
- vaulted_billing/1.0.2
|
16
|
+
response: !ruby/struct:VCR::Response
|
17
|
+
status: !ruby/struct:VCR::ResponseStatus
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Wed, 10 Aug 2011 17:56:44 GMT
|
23
|
+
server:
|
24
|
+
- Microsoft-IIS/6.0
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
x-aspnet-version:
|
28
|
+
- 2.0.50727
|
29
|
+
cache-control:
|
30
|
+
- private
|
31
|
+
content-type:
|
32
|
+
- text/xml; charset=utf-8
|
33
|
+
content-length:
|
34
|
+
- '504'
|
35
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerProfileResponse
|
36
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
37
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerProfileId>4309829</customerProfileId><customerPaymentProfileIdList
|
38
|
+
/><customerShippingAddressIdList /><validationDirectResponseList /></createCustomerProfileResponse>"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
42
|
+
method: :post
|
43
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<createCustomerPaymentProfileRequest
|
45
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
46
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
47
|
+
\ </merchantAuthentication>\n <customerProfileId>4309829</customerProfileId>\n
|
48
|
+
\ <paymentProfile>\n <billTo>\n <firstName>Brett</firstName>\n <lastName>Anderson</lastName>\n
|
49
|
+
\ <address>956 Sammy Field</address>\n <city>Larkinborough</city>\n
|
50
|
+
\ <state>Mississippi</state>\n <zip>32355</zip>\n <country>US</country>\n
|
51
|
+
\ <phoneNumber>1-129-289-6781</phoneNumber>\n </billTo>\n <payment>\n
|
52
|
+
\ <creditCard>\n <cardNumber>343364053762320</cardNumber>\n <expirationDate>2012-08</expirationDate>\n
|
53
|
+
\ </creditCard>\n </payment>\n </paymentProfile>\n</createCustomerPaymentProfileRequest>\n"
|
54
|
+
headers:
|
55
|
+
content-type:
|
56
|
+
- text/xml
|
57
|
+
user-agent:
|
58
|
+
- vaulted_billing/1.0.2
|
59
|
+
response: !ruby/struct:VCR::Response
|
60
|
+
status: !ruby/struct:VCR::ResponseStatus
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
date:
|
65
|
+
- Wed, 10 Aug 2011 17:56:46 GMT
|
66
|
+
server:
|
67
|
+
- Microsoft-IIS/6.0
|
68
|
+
x-powered-by:
|
69
|
+
- ASP.NET
|
70
|
+
x-aspnet-version:
|
71
|
+
- 2.0.50727
|
72
|
+
cache-control:
|
73
|
+
- private
|
74
|
+
content-type:
|
75
|
+
- text/xml; charset=utf-8
|
76
|
+
content-length:
|
77
|
+
- '435'
|
78
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><createCustomerPaymentProfileResponse
|
79
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
80
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages><customerPaymentProfileId>3802870</customerPaymentProfileId></createCustomerPaymentProfileResponse>"
|
81
|
+
http_version: '1.1'
|
82
|
+
- !ruby/struct:VCR::HTTPInteraction
|
83
|
+
request: !ruby/struct:VCR::Request
|
84
|
+
method: :post
|
85
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
86
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deleteCustomerPaymentProfileRequest
|
87
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
88
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
89
|
+
\ </merchantAuthentication>\n <customerProfileId>4309829</customerProfileId>\n
|
90
|
+
\ <customerPaymentProfileId>3802870</customerPaymentProfileId>\n</deleteCustomerPaymentProfileRequest>\n"
|
91
|
+
headers:
|
92
|
+
content-type:
|
93
|
+
- text/xml
|
94
|
+
user-agent:
|
95
|
+
- vaulted_billing/1.0.2
|
96
|
+
response: !ruby/struct:VCR::Response
|
97
|
+
status: !ruby/struct:VCR::ResponseStatus
|
98
|
+
code: 200
|
99
|
+
message: OK
|
100
|
+
headers:
|
101
|
+
date:
|
102
|
+
- Wed, 10 Aug 2011 17:56:47 GMT
|
103
|
+
server:
|
104
|
+
- Microsoft-IIS/6.0
|
105
|
+
x-powered-by:
|
106
|
+
- ASP.NET
|
107
|
+
x-aspnet-version:
|
108
|
+
- 2.0.50727
|
109
|
+
cache-control:
|
110
|
+
- private
|
111
|
+
content-type:
|
112
|
+
- text/xml; charset=utf-8
|
113
|
+
content-length:
|
114
|
+
- '375'
|
115
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><deleteCustomerPaymentProfileResponse
|
116
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
117
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages></deleteCustomerPaymentProfileResponse>"
|
118
|
+
http_version: '1.1'
|
119
|
+
- !ruby/struct:VCR::HTTPInteraction
|
120
|
+
request: !ruby/struct:VCR::Request
|
121
|
+
method: :post
|
122
|
+
uri: https://apitest.authorize.net:443/xml/v1/request.api
|
123
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deleteCustomerPaymentProfileRequest
|
124
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">\n <merchantAuthentication>\n
|
125
|
+
\ <name>%{AUTHORIZE_NET_CIM_USERNAME}</name>\n <transactionKey>2Rsb3965z97ZgAWa</transactionKey>\n
|
126
|
+
\ </merchantAuthentication>\n <customerProfileId>4309829</customerProfileId>\n
|
127
|
+
\ <customerPaymentProfileId>3802870</customerPaymentProfileId>\n</deleteCustomerPaymentProfileRequest>\n"
|
128
|
+
headers:
|
129
|
+
content-type:
|
130
|
+
- text/xml
|
131
|
+
user-agent:
|
132
|
+
- vaulted_billing/1.0.2
|
133
|
+
response: !ruby/struct:VCR::Response
|
134
|
+
status: !ruby/struct:VCR::ResponseStatus
|
135
|
+
code: 200
|
136
|
+
message: OK
|
137
|
+
headers:
|
138
|
+
date:
|
139
|
+
- Wed, 10 Aug 2011 17:56:48 GMT
|
140
|
+
server:
|
141
|
+
- Microsoft-IIS/6.0
|
142
|
+
x-powered-by:
|
143
|
+
- ASP.NET
|
144
|
+
x-aspnet-version:
|
145
|
+
- 2.0.50727
|
146
|
+
cache-control:
|
147
|
+
- private
|
148
|
+
content-type:
|
149
|
+
- text/xml; charset=utf-8
|
150
|
+
content-length:
|
151
|
+
- '394'
|
152
|
+
body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><deleteCustomerPaymentProfileResponse
|
153
|
+
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
|
154
|
+
xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Error</resultCode><message><code>E00040</code><text>The
|
155
|
+
record cannot be found.</text></message></messages></deleteCustomerPaymentProfileResponse>"
|
156
|
+
http_version: '1.1'
|