authorizenetsample 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/CustomerProfiles/create-customer-payment-profile.rb +62 -0
  3. data/lib/CustomerProfiles/create-customer-profile-from-transaction.rb +51 -0
  4. data/lib/CustomerProfiles/create-customer-profile.rb +92 -0
  5. data/lib/CustomerProfiles/create-customer-shipping-address.rb +31 -0
  6. data/lib/CustomerProfiles/delete-customer-payment-profile.rb +32 -0
  7. data/lib/CustomerProfiles/delete-customer-profile.rb +31 -0
  8. data/lib/CustomerProfiles/delete-customer-shipping-address.rb +33 -0
  9. data/lib/CustomerProfiles/get-accept-customer-profile-page.rb +23 -5
  10. data/lib/CustomerProfiles/get-customer-payment-profile-list.rb +54 -0
  11. data/lib/CustomerProfiles/get-customer-payment-profile.rb +40 -0
  12. data/lib/CustomerProfiles/get-customer-profile-ids.rb +45 -0
  13. data/lib/CustomerProfiles/get-customer-profile.rb +39 -3
  14. data/lib/CustomerProfiles/get-customer-shipping-address.rb +41 -0
  15. data/lib/CustomerProfiles/update-customer-payment-profile.rb +37 -0
  16. data/lib/CustomerProfiles/update-customer-profile.rb +37 -0
  17. data/lib/CustomerProfiles/update-customer-shipping-address.rb +37 -0
  18. data/lib/CustomerProfiles/validate-customer-payment-profile.rb +37 -0
  19. data/lib/FraudManagement/approve-or-decline-held-transaction.rb +57 -0
  20. data/lib/FraudManagement/get-held-transaction-list.rb +47 -0
  21. data/lib/MobileInAppTransactions/create-an-accept-transaction.rb +59 -0
  22. data/lib/MobileInAppTransactions/create-an-android-pay-transaction.rb +59 -0
  23. data/lib/MobileInAppTransactions/create-an-apple-pay-transaction.rb +58 -0
  24. data/lib/PayPalExpressCheckout/authorization-and-capture-continued.rb +69 -0
  25. data/lib/PayPalExpressCheckout/authorization-and-capture.rb +70 -0
  26. data/lib/PayPalExpressCheckout/authorization-only-continued.rb +70 -0
  27. data/lib/PayPalExpressCheckout/authorization-only.rb +71 -0
  28. data/lib/PayPalExpressCheckout/credit.rb +67 -0
  29. data/lib/PayPalExpressCheckout/get-details.rb +69 -0
  30. data/lib/PayPalExpressCheckout/prior-authorization-capture.rb +112 -0
  31. data/lib/PayPalExpressCheckout/void.rb +113 -0
  32. data/lib/PaymentTransactions/authorize-credit-card.rb +103 -0
  33. data/lib/PaymentTransactions/capture-funds-authorized-through-another-channel.rb +60 -0
  34. data/lib/PaymentTransactions/capture-previously-authorized-amount.rb +104 -0
  35. data/lib/PaymentTransactions/charge-credit-card.rb +104 -0
  36. data/lib/PaymentTransactions/charge-customer-profile.rb +61 -0
  37. data/lib/PaymentTransactions/charge-tokenized-credit-card.rb +60 -0
  38. data/lib/PaymentTransactions/create-an-accept-payment-transaction.rb +47 -6
  39. data/lib/PaymentTransactions/credit-bank-account.rb +62 -0
  40. data/lib/PaymentTransactions/debit-bank-account.rb +64 -0
  41. data/lib/PaymentTransactions/get-an-accept-payment-page.rb +70 -49
  42. data/lib/PaymentTransactions/refund-transaction.rb +60 -0
  43. data/lib/PaymentTransactions/update-split-tender-group.rb +44 -0
  44. data/lib/PaymentTransactions/void-transaction.rb +103 -0
  45. data/lib/RecurringBilling/cancel-subscription.rb +36 -0
  46. data/lib/RecurringBilling/create-subscription-from-customer-profile.rb +52 -0
  47. data/lib/RecurringBilling/create-subscription.rb +54 -0
  48. data/lib/RecurringBilling/get-list-of-subscriptions.rb +51 -0
  49. data/lib/RecurringBilling/get-subscription-status.rb +36 -0
  50. data/lib/RecurringBilling/get-subscription.rb +42 -0
  51. data/lib/RecurringBilling/update-subscription.rb +54 -0
  52. data/lib/TransactionReporting/get-batch-statistics.rb +57 -0
  53. data/lib/TransactionReporting/get-customer-profile-transaction-list.rb +49 -0
  54. data/lib/TransactionReporting/get-merchant-details.rb +50 -0
  55. data/lib/TransactionReporting/get-settled-batch-list.rb +49 -0
  56. data/lib/TransactionReporting/get-transaction-details.rb +40 -0
  57. data/lib/TransactionReporting/get-transaction-list.rb +58 -0
  58. data/lib/TransactionReporting/get-unsettled-transaction-list.rb +48 -0
  59. data/lib/VisaCheckout/create-visa-checkout-transaction.rb +62 -0
  60. data/lib/VisaCheckout/decrypt-visa-checkout-data.rb +37 -0
  61. data/lib/authorize_netsample.rb +21 -0
  62. data/lib/authorizenetsample.rb +4 -12
  63. data/lib/credentials.yml +9 -0
  64. data/lib/spec/sample_code_spec.rb +320 -0
  65. data/lib/spec/spec.opts +2 -0
  66. data/lib/spec/spec_helper.rb +10 -0
  67. data/lib/spec/support/shared_helper.rb +7 -0
  68. metadata +69 -6
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format progress
@@ -0,0 +1,10 @@
1
+ #require 'coveralls'
2
+ #Coveralls.wear!
3
+ require "authorizenet"
4
+ require "yaml"
5
+
6
+ Dir['./spec/support/**/*.rb'].each{ |f| require f }
7
+
8
+ RSpec.configure do |config|
9
+ config.include SharedHelper
10
+ end
@@ -0,0 +1,7 @@
1
+ module SharedHelper
2
+ def credentials
3
+ $credentials ||= YAML.load_file(File.dirname(__FILE__) + "/../credentials.yml")
4
+ rescue Errno::ENOENT
5
+ warn "WARNING: Running w/o valid AuthorizeNet sandbox credentials. Create spec/credentials.yml."
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authorizenetsample
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Authorize.Net
@@ -10,19 +10,82 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2018-10-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Sample code includes payment and customer profile functionalities
13
+ description: Authorize.Net SDK includes standard payments, recurring billing, and
14
+ customer profiles
14
15
  email: developer@authorize.net
15
16
  executables: []
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - lib/CustomerProfiles/create-customer-payment-profile.rb
21
+ - lib/CustomerProfiles/create-customer-profile-from-transaction.rb
22
+ - lib/CustomerProfiles/create-customer-profile.rb
23
+ - lib/CustomerProfiles/create-customer-shipping-address.rb
24
+ - lib/CustomerProfiles/delete-customer-payment-profile.rb
25
+ - lib/CustomerProfiles/delete-customer-profile.rb
26
+ - lib/CustomerProfiles/delete-customer-shipping-address.rb
19
27
  - lib/CustomerProfiles/get-accept-customer-profile-page.rb
28
+ - lib/CustomerProfiles/get-customer-payment-profile-list.rb
29
+ - lib/CustomerProfiles/get-customer-payment-profile.rb
30
+ - lib/CustomerProfiles/get-customer-profile-ids.rb
20
31
  - lib/CustomerProfiles/get-customer-profile.rb
32
+ - lib/CustomerProfiles/get-customer-shipping-address.rb
33
+ - lib/CustomerProfiles/update-customer-payment-profile.rb
34
+ - lib/CustomerProfiles/update-customer-profile.rb
35
+ - lib/CustomerProfiles/update-customer-shipping-address.rb
36
+ - lib/CustomerProfiles/validate-customer-payment-profile.rb
37
+ - lib/FraudManagement/approve-or-decline-held-transaction.rb
38
+ - lib/FraudManagement/get-held-transaction-list.rb
39
+ - lib/MobileInAppTransactions/create-an-accept-transaction.rb
40
+ - lib/MobileInAppTransactions/create-an-android-pay-transaction.rb
41
+ - lib/MobileInAppTransactions/create-an-apple-pay-transaction.rb
42
+ - lib/PayPalExpressCheckout/authorization-and-capture-continued.rb
43
+ - lib/PayPalExpressCheckout/authorization-and-capture.rb
44
+ - lib/PayPalExpressCheckout/authorization-only-continued.rb
45
+ - lib/PayPalExpressCheckout/authorization-only.rb
46
+ - lib/PayPalExpressCheckout/credit.rb
47
+ - lib/PayPalExpressCheckout/get-details.rb
48
+ - lib/PayPalExpressCheckout/prior-authorization-capture.rb
49
+ - lib/PayPalExpressCheckout/void.rb
50
+ - lib/PaymentTransactions/authorize-credit-card.rb
51
+ - lib/PaymentTransactions/capture-funds-authorized-through-another-channel.rb
52
+ - lib/PaymentTransactions/capture-previously-authorized-amount.rb
53
+ - lib/PaymentTransactions/charge-credit-card.rb
54
+ - lib/PaymentTransactions/charge-customer-profile.rb
55
+ - lib/PaymentTransactions/charge-tokenized-credit-card.rb
21
56
  - lib/PaymentTransactions/create-an-accept-payment-transaction.rb
57
+ - lib/PaymentTransactions/credit-bank-account.rb
58
+ - lib/PaymentTransactions/debit-bank-account.rb
22
59
  - lib/PaymentTransactions/get-an-accept-payment-page.rb
60
+ - lib/PaymentTransactions/refund-transaction.rb
61
+ - lib/PaymentTransactions/update-split-tender-group.rb
62
+ - lib/PaymentTransactions/void-transaction.rb
63
+ - lib/RecurringBilling/cancel-subscription.rb
64
+ - lib/RecurringBilling/create-subscription-from-customer-profile.rb
65
+ - lib/RecurringBilling/create-subscription.rb
66
+ - lib/RecurringBilling/get-list-of-subscriptions.rb
67
+ - lib/RecurringBilling/get-subscription-status.rb
68
+ - lib/RecurringBilling/get-subscription.rb
69
+ - lib/RecurringBilling/update-subscription.rb
70
+ - lib/TransactionReporting/get-batch-statistics.rb
71
+ - lib/TransactionReporting/get-customer-profile-transaction-list.rb
72
+ - lib/TransactionReporting/get-merchant-details.rb
73
+ - lib/TransactionReporting/get-settled-batch-list.rb
74
+ - lib/TransactionReporting/get-transaction-details.rb
75
+ - lib/TransactionReporting/get-transaction-list.rb
76
+ - lib/TransactionReporting/get-unsettled-transaction-list.rb
77
+ - lib/VisaCheckout/create-visa-checkout-transaction.rb
78
+ - lib/VisaCheckout/decrypt-visa-checkout-data.rb
79
+ - lib/authorize_netsample.rb
23
80
  - lib/authorizenetsample.rb
24
- homepage:
25
- licenses: []
81
+ - lib/credentials.yml
82
+ - lib/spec/sample_code_spec.rb
83
+ - lib/spec/spec.opts
84
+ - lib/spec/spec_helper.rb
85
+ - lib/spec/support/shared_helper.rb
86
+ homepage: https://github.com/AuthorizeNet/sample-code-ruby
87
+ licenses:
88
+ - https://github.com/AuthorizeNet/sample-code-ruby/LICENSE
26
89
  metadata: {}
27
90
  post_install_message:
28
91
  rdoc_options: []
@@ -32,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
32
95
  requirements:
33
96
  - - ">="
34
97
  - !ruby/object:Gem::Version
35
- version: 2.2.6
98
+ version: 2.2.2
36
99
  required_rubygems_version: !ruby/object:Gem::Requirement
37
100
  requirements:
38
101
  - - ">="
@@ -43,5 +106,5 @@ rubyforge_project:
43
106
  rubygems_version: 2.4.5.2
44
107
  signing_key:
45
108
  specification_version: 4
46
- summary: Authorize.Net Payments sample code
109
+ summary: Authorize.Net Payments sam[ple code
47
110
  test_files: []