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.
Files changed (104) hide show
  1. data/LICENSE +19 -0
  2. data/lib/vaulted_billing/gateways/bogus.rb +2 -0
  3. data/lib/vaulted_billing/version.rb +1 -1
  4. data/spec/certification/ipcommerce/README.md +9 -0
  5. data/spec/certification/ipcommerce/TODO.md +1 -0
  6. data/spec/certification/ipcommerce/host_capture_ecommerce.rb +318 -0
  7. data/spec/certification/ipcommerce/ipcommerce_transaction.rb +28 -0
  8. data/spec/certification/ipcommerce/terminal_capture_ecommerce.rb +298 -0
  9. data/spec/config.example.yml +18 -0
  10. data/spec/factories/credit_cards.rb +38 -0
  11. data/spec/factories/customers.rb +7 -0
  12. data/spec/factories/sequences.rb +22 -0
  13. data/spec/fixtures/net/authorize_net_cim/add_customer/failure.yml +38 -0
  14. data/spec/fixtures/net/authorize_net_cim/add_customer/success.yml +39 -0
  15. data/spec/fixtures/net/authorize_net_cim/add_customer_credit_card/failure.yml +83 -0
  16. data/spec/fixtures/net/authorize_net_cim/add_customer_credit_card/success.yml +81 -0
  17. data/spec/fixtures/net/authorize_net_cim/authorize/failure.yml +121 -0
  18. data/spec/fixtures/net/authorize_net_cim/authorize/success.yml +121 -0
  19. data/spec/fixtures/net/authorize_net_cim/capture/failure.yml +161 -0
  20. data/spec/fixtures/net/authorize_net_cim/capture/success.yml +160 -0
  21. data/spec/fixtures/net/authorize_net_cim/purchase/failure.yml +122 -0
  22. data/spec/fixtures/net/authorize_net_cim/purchase/success.yml +122 -0
  23. data/spec/fixtures/net/authorize_net_cim/refund/failure.yml +123 -0
  24. data/spec/fixtures/net/authorize_net_cim/refund/failure_2.yml +43 -0
  25. data/spec/fixtures/net/authorize_net_cim/remove_customer/failure.yml +76 -0
  26. data/spec/fixtures/net/authorize_net_cim/remove_customer/success.yml +75 -0
  27. data/spec/fixtures/net/authorize_net_cim/remove_customer_credit_card/failure.yml +156 -0
  28. data/spec/fixtures/net/authorize_net_cim/remove_customer_credit_card/success.yml +118 -0
  29. data/spec/fixtures/net/authorize_net_cim/update_customer/failure.yml +77 -0
  30. data/spec/fixtures/net/authorize_net_cim/update_customer/success.yml +76 -0
  31. data/spec/fixtures/net/authorize_net_cim/update_customer_credit_card/failure.yml +125 -0
  32. data/spec/fixtures/net/authorize_net_cim/update_customer_credit_card/success.yml +124 -0
  33. data/spec/fixtures/net/authorize_net_cim/void/success.yml +159 -0
  34. data/spec/fixtures/net/ipcommerce/add_customer_credit_card/failure.yml +53 -0
  35. data/spec/fixtures/net/ipcommerce/add_customer_credit_card/success.yml +103 -0
  36. data/spec/fixtures/net/ipcommerce/authorize/existing/failure.yml +51 -0
  37. data/spec/fixtures/net/ipcommerce/authorize/existing/success.yml +105 -0
  38. data/spec/fixtures/net/ipcommerce/authorize/new/avs/bad_format.yml +53 -0
  39. data/spec/fixtures/net/ipcommerce/authorize/new/avs/issuer_not_certified.yml +53 -0
  40. data/spec/fixtures/net/ipcommerce/authorize/new/avs/match.yml +53 -0
  41. data/spec/fixtures/net/ipcommerce/authorize/new/avs/no_match.yml +53 -0
  42. data/spec/fixtures/net/ipcommerce/authorize/new/avs/no_response_from_card_association.yml +53 -0
  43. data/spec/fixtures/net/ipcommerce/authorize/new/avs/not_included.yml +53 -0
  44. data/spec/fixtures/net/ipcommerce/authorize/new/avs/not_sent.yml +53 -0
  45. data/spec/fixtures/net/ipcommerce/authorize/new/avs/not_verified.yml +53 -0
  46. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/invalid.yml +53 -0
  47. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/issuer_not_certified.yml +53 -0
  48. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/no_code_present.yml +53 -0
  49. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/no_match.yml +53 -0
  50. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/no_response.yml +53 -0
  51. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/not_applicable.yml +53 -0
  52. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/not_processed.yml +53 -0
  53. data/spec/fixtures/net/ipcommerce/authorize/new/cvv/should_have_been_present.yml +53 -0
  54. data/spec/fixtures/net/ipcommerce/authorize/new/failure.yml +53 -0
  55. data/spec/fixtures/net/ipcommerce/authorize/new/success.yml +53 -0
  56. data/spec/fixtures/net/ipcommerce/capture/failure.yml +78 -0
  57. data/spec/fixtures/net/ipcommerce/capture/invalid.yml +78 -0
  58. data/spec/fixtures/net/ipcommerce/capture/success.yml +78 -0
  59. data/spec/fixtures/net/ipcommerce/failover.yml +53 -0
  60. data/spec/fixtures/net/ipcommerce/purchase/existing/failure.yml +51 -0
  61. data/spec/fixtures/net/ipcommerce/purchase/existing/success.yml +105 -0
  62. data/spec/fixtures/net/ipcommerce/purchase/new/failure.yml +53 -0
  63. data/spec/fixtures/net/ipcommerce/purchase/new/success.yml +53 -0
  64. data/spec/fixtures/net/ipcommerce/refund/failure.yml +78 -0
  65. data/spec/fixtures/net/ipcommerce/refund/success.yml +80 -0
  66. data/spec/fixtures/net/ipcommerce/update_customer_credit_card/failure.yml +53 -0
  67. data/spec/fixtures/net/ipcommerce/update_customer_credit_card/success.yml +103 -0
  68. data/spec/fixtures/net/ipcommerce/void/failure.yml +78 -0
  69. data/spec/fixtures/net/ipcommerce/void/success.yml +78 -0
  70. data/spec/fixtures/net/nmi_customer_vault/add_customer_credit_card/failure.yml +26 -0
  71. data/spec/fixtures/net/nmi_customer_vault/add_customer_credit_card/success.yml +26 -0
  72. data/spec/fixtures/net/nmi_customer_vault/authorize/decline.yml +51 -0
  73. data/spec/fixtures/net/nmi_customer_vault/authorize/success.yml +51 -0
  74. data/spec/fixtures/net/nmi_customer_vault/capture/failure.yml +76 -0
  75. data/spec/fixtures/net/nmi_customer_vault/capture/success.yml +76 -0
  76. data/spec/fixtures/net/nmi_customer_vault/purchase/decline.yml +51 -0
  77. data/spec/fixtures/net/nmi_customer_vault/purchase/success.yml +51 -0
  78. data/spec/fixtures/net/nmi_customer_vault/refund/failure.yml +101 -0
  79. data/spec/fixtures/net/nmi_customer_vault/remove_customer_credit_card/failure.yml +26 -0
  80. data/spec/fixtures/net/nmi_customer_vault/remove_customer_credit_card/success.yml +51 -0
  81. data/spec/fixtures/net/nmi_customer_vault/update_customer_credit_card/success.yml +51 -0
  82. data/spec/fixtures/net/nmi_customer_vault/void/failure.yml +26 -0
  83. data/spec/fixtures/net/nmi_customer_vault/void/success.yml +76 -0
  84. data/spec/models/vaulted_billing/configuration_spec.rb +62 -0
  85. data/spec/models/vaulted_billing/core_ext/hash_spec.rb +47 -0
  86. data/spec/models/vaulted_billing/credit_card_spec.rb +61 -0
  87. data/spec/models/vaulted_billing/gateway_spec.rb +115 -0
  88. data/spec/models/vaulted_billing/http_spec.rb +154 -0
  89. data/spec/models/vaulted_billing/transaction_spec.rb +60 -0
  90. data/spec/models/vaulted_billing_spec.rb +16 -0
  91. data/spec/requests/authorize_net_cim_spec.rb +506 -0
  92. data/spec/requests/bogus_spec.rb +144 -0
  93. data/spec/requests/ipcommerce_spec.rb +518 -0
  94. data/spec/requests/nmi_customer_vault_spec.rb +390 -0
  95. data/spec/spec_helper.rb +12 -0
  96. data/spec/support/_vaulted_billing.rb +8 -0
  97. data/spec/support/factory_girl.rb +5 -0
  98. data/spec/support/faker.rb +1 -0
  99. data/spec/support/helpers.rb +46 -0
  100. data/spec/support/logging.rb +2 -0
  101. data/spec/support/test_exception.rb +1 -0
  102. data/spec/support/vcr.rb +49 -0
  103. data/spec/support/webmock.rb +7 -0
  104. metadata +312 -37
@@ -0,0 +1,118 @@
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>magnolia@watsica.info</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:41 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>4309816</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>4309816</customerProfileId>\n
48
+ \ <paymentProfile>\n <billTo>\n <firstName>Ricky</firstName>\n <lastName>Metz</lastName>\n
49
+ \ <address>5973 Gorczany Path</address>\n <city>Feestshire</city>\n
50
+ \ <state>Maryland</state>\n <zip>65048</zip>\n <country>US</country>\n
51
+ \ <phoneNumber>1-411-963-8426 x3646</phoneNumber>\n </billTo>\n <payment>\n
52
+ \ <creditCard>\n <cardNumber>4556960115460938</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:42 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>3802868</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>4309816</customerProfileId>\n
90
+ \ <customerPaymentProfileId>3802868</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:43 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'
@@ -0,0 +1,77 @@
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>jesse.dare@johnsjohns.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:21 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>4309762</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<updateCustomerProfileRequest
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 <profile>\n <email>jesse.dare@johnsjohns.biz</email>\n
48
+ \ <customerProfileId>1234567890</customerProfileId>\n </profile>\n</updateCustomerProfileRequest>\n"
49
+ headers:
50
+ content-type:
51
+ - text/xml
52
+ user-agent:
53
+ - vaulted_billing/1.0.2
54
+ response: !ruby/struct:VCR::Response
55
+ status: !ruby/struct:VCR::ResponseStatus
56
+ code: 200
57
+ message: OK
58
+ headers:
59
+ date:
60
+ - Wed, 10 Aug 2011 17:56:22 GMT
61
+ server:
62
+ - Microsoft-IIS/6.0
63
+ x-powered-by:
64
+ - ASP.NET
65
+ x-aspnet-version:
66
+ - 2.0.50727
67
+ cache-control:
68
+ - private
69
+ content-type:
70
+ - text/xml; charset=utf-8
71
+ content-length:
72
+ - '380'
73
+ body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><updateCustomerProfileResponse
74
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
75
+ xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Error</resultCode><message><code>E00040</code><text>The
76
+ record cannot be found.</text></message></messages></updateCustomerProfileResponse>"
77
+ 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>faye_wiza@sipeskrajcik.info</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:19 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>4309752</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<updateCustomerProfileRequest
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 <profile>\n <email>updated@example.com</email>\n
48
+ \ <customerProfileId>4309752</customerProfileId>\n </profile>\n</updateCustomerProfileRequest>\n"
49
+ headers:
50
+ content-type:
51
+ - text/xml
52
+ user-agent:
53
+ - vaulted_billing/1.0.2
54
+ response: !ruby/struct:VCR::Response
55
+ status: !ruby/struct:VCR::ResponseStatus
56
+ code: 200
57
+ message: OK
58
+ headers:
59
+ date:
60
+ - Wed, 10 Aug 2011 17:56:20 GMT
61
+ server:
62
+ - Microsoft-IIS/6.0
63
+ x-powered-by:
64
+ - ASP.NET
65
+ x-aspnet-version:
66
+ - 2.0.50727
67
+ cache-control:
68
+ - private
69
+ content-type:
70
+ - text/xml; charset=utf-8
71
+ content-length:
72
+ - '361'
73
+ body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><updateCustomerProfileResponse
74
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
75
+ xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages></updateCustomerProfileResponse>"
76
+ http_version: '1.1'
@@ -0,0 +1,125 @@
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>bernice@metzrath.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:38 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>4309806</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>4309806</customerProfileId>\n
48
+ \ <paymentProfile>\n <billTo>\n <firstName>Remington</firstName>\n <lastName>Runolfsdottir</lastName>\n
49
+ \ <address>9807 Fritsch Route</address>\n <city>New Thereseville</city>\n
50
+ \ <state>Hawaii</state>\n <zip>74514-1364</zip>\n <country>US</country>\n
51
+ \ <phoneNumber>774-393-5486 x4075</phoneNumber>\n </billTo>\n <payment>\n
52
+ \ <creditCard>\n <cardNumber>5288407810509231</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:39 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>3802863</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<updateCustomerPaymentProfileRequest
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>4309806</customerProfileId>\n
90
+ \ <paymentProfile>\n <billTo>\n <firstName>Remington</firstName>\n <lastName>Runolfsdottir</lastName>\n
91
+ \ <address>9807 Fritsch Route</address>\n <city>New Thereseville</city>\n
92
+ \ <state>Hawaii</state>\n <zip>74514-1364</zip>\n <country>US</country>\n
93
+ \ <phoneNumber>774-393-5486 x4075</phoneNumber>\n </billTo>\n <payment>\n
94
+ \ <creditCard>\n <cardNumber>123456</cardNumber>\n <expirationDate>2012-08</expirationDate>\n
95
+ \ </creditCard>\n </payment>\n <customerPaymentProfileId>3802863</customerPaymentProfileId>\n
96
+ \ </paymentProfile>\n</updateCustomerPaymentProfileRequest>\n"
97
+ headers:
98
+ content-type:
99
+ - text/xml
100
+ user-agent:
101
+ - vaulted_billing/1.0.2
102
+ response: !ruby/struct:VCR::Response
103
+ status: !ruby/struct:VCR::ResponseStatus
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ date:
108
+ - Wed, 10 Aug 2011 17:56:40 GMT
109
+ server:
110
+ - Microsoft-IIS/6.0
111
+ x-powered-by:
112
+ - ASP.NET
113
+ x-aspnet-version:
114
+ - 2.0.50727
115
+ cache-control:
116
+ - private
117
+ content-type:
118
+ - text/xml; charset=utf-8
119
+ content-length:
120
+ - '411'
121
+ body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><updateCustomerPaymentProfileResponse
122
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
123
+ xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Error</resultCode><message><code>E00015</code><text>The
124
+ field length is invalid for Card Number.</text></message></messages></updateCustomerPaymentProfileResponse>"
125
+ http_version: '1.1'
@@ -0,0 +1,124 @@
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>herman.maggio@heaney.org</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:33 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>4309793</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>4309793</customerProfileId>\n
48
+ \ <paymentProfile>\n <billTo>\n <firstName>Darwin</firstName>\n <lastName>Stanton</lastName>\n
49
+ \ <address>071 Shanahan Fork</address>\n <city>North Vickie</city>\n
50
+ \ <state>Maryland</state>\n <zip>72790-5227</zip>\n <country>US</country>\n
51
+ \ <phoneNumber>(165)520-7694 x66018</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:34 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>3802861</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<updateCustomerPaymentProfileRequest
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>4309793</customerProfileId>\n
90
+ \ <paymentProfile>\n <billTo>\n <firstName>Darwin</firstName>\n <lastName>Stanton</lastName>\n
91
+ \ <address>071 Shanahan Fork</address>\n <city>North Vickie</city>\n
92
+ \ <state>Maryland</state>\n <zip>72790-5227</zip>\n <country>US</country>\n
93
+ \ <phoneNumber>(165)520-7694 x66018</phoneNumber>\n </billTo>\n <payment>\n
94
+ \ <creditCard>\n <cardNumber>5230002140732287</cardNumber>\n <expirationDate>2013-08</expirationDate>\n
95
+ \ </creditCard>\n </payment>\n <customerPaymentProfileId>3802861</customerPaymentProfileId>\n
96
+ \ </paymentProfile>\n</updateCustomerPaymentProfileRequest>\n"
97
+ headers:
98
+ content-type:
99
+ - text/xml
100
+ user-agent:
101
+ - vaulted_billing/1.0.2
102
+ response: !ruby/struct:VCR::Response
103
+ status: !ruby/struct:VCR::ResponseStatus
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ date:
108
+ - Wed, 10 Aug 2011 17:56:37 GMT
109
+ server:
110
+ - Microsoft-IIS/6.0
111
+ x-powered-by:
112
+ - ASP.NET
113
+ x-aspnet-version:
114
+ - 2.0.50727
115
+ cache-control:
116
+ - private
117
+ content-type:
118
+ - text/xml; charset=utf-8
119
+ content-length:
120
+ - '375'
121
+ body: ! "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><updateCustomerPaymentProfileResponse
122
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
123
+ xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"><messages><resultCode>Ok</resultCode><message><code>I00001</code><text>Successful.</text></message></messages></updateCustomerPaymentProfileResponse>"
124
+ http_version: '1.1'