hypercharge-schema 1.24.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +33 -0
- data/LICENSE.txt +22 -0
- data/README.md +73 -0
- data/Rakefile +14 -0
- data/composer.json +17 -0
- data/hypercharge-schema.gemspec +27 -0
- data/json/MobilePayment.json +73 -0
- data/json/WpfPayment.json +99 -0
- data/json/authorize.json +77 -0
- data/json/authorize3d.json +173 -0
- data/json/capture.json +42 -0
- data/json/debit_sale.json +73 -0
- data/json/direct_pay24_sale.json +85 -0
- data/json/giro_pay_sale.json +85 -0
- data/json/ideal_sale.json +87 -0
- data/json/init_recurring_authorize.json +81 -0
- data/json/init_recurring_debit_authorize.json +77 -0
- data/json/init_recurring_debit_sale.json +77 -0
- data/json/init_recurring_sale.json +81 -0
- data/json/pay_in_advance.json +61 -0
- data/json/pay_pal.json +65 -0
- data/json/pay_safe_card_sale.json +69 -0
- data/json/payment_on_delivery.json +57 -0
- data/json/purchase_on_account.json +61 -0
- data/json/reconcile.json +20 -0
- data/json/recurring_debit_sale.json +45 -0
- data/json/recurring_sale.json +45 -0
- data/json/referenced_fund_transfer.json +46 -0
- data/json/refund.json +42 -0
- data/json/sale.json +77 -0
- data/json/sale3d.json +173 -0
- data/json/scheduler_create.json +46 -0
- data/json/scheduler_index.json +34 -0
- data/json/scheduler_update.json +35 -0
- data/json/types.json +385 -0
- data/json/void.json +33 -0
- data/lib/php/JsonSchemaFixture.php +12 -0
- data/lib/php/JsonSchemaValidator.php +47 -0
- data/lib/ruby/hypercharge/schema.rb +31 -0
- data/lib/ruby/hypercharge/schema/fixture.rb +30 -0
- data/lib/ruby/hypercharge/schema/version.rb +7 -0
- data/package.json +27 -0
- data/test/fixtures/notifications/PaymentNotification_echo.xml +4 -0
- data/test/fixtures/notifications/TransactionNotification_echo.xml +4 -0
- data/test/fixtures/notifications/recurring_event.json +13 -0
- data/test/fixtures/notifications/scheduler.json +7 -0
- data/test/fixtures/requests/MobilePayment.json +35 -0
- data/test/fixtures/requests/MobilePayment.xml +34 -0
- data/test/fixtures/requests/WpfPayment.json +40 -0
- data/test/fixtures/requests/WpfPayment.xml +39 -0
- data/test/fixtures/requests/WpfPayment_cancel.xml +4 -0
- data/test/fixtures/requests/WpfPayment_capture.xml +4 -0
- data/test/fixtures/requests/WpfPayment_refund.xml +4 -0
- data/test/fixtures/requests/WpfPayment_void.xml +4 -0
- data/test/fixtures/requests/authorize.json +29 -0
- data/test/fixtures/requests/authorize.xml +28 -0
- data/test/fixtures/requests/authorize3d_async.json +32 -0
- data/test/fixtures/requests/authorize3d_async.xml +31 -0
- data/test/fixtures/requests/authorize3d_sync.json +34 -0
- data/test/fixtures/requests/authorize3d_sync.xml +33 -0
- data/test/fixtures/requests/capture.json +10 -0
- data/test/fixtures/requests/capture.xml +9 -0
- data/test/fixtures/requests/debit_sale.json +28 -0
- data/test/fixtures/requests/debit_sale.xml +27 -0
- data/test/fixtures/requests/direct_pay24_sale.json +31 -0
- data/test/fixtures/requests/direct_pay24_sale.xml +30 -0
- data/test/fixtures/requests/giro_pay_sale.json +31 -0
- data/test/fixtures/requests/giro_pay_sale.xml +30 -0
- data/test/fixtures/requests/ideal_sale.json +31 -0
- data/test/fixtures/requests/ideal_sale.xml +30 -0
- data/test/fixtures/requests/init_recurring_authorize.json +34 -0
- data/test/fixtures/requests/init_recurring_authorize.xml +33 -0
- data/test/fixtures/requests/init_recurring_debit_authorize.json +33 -0
- data/test/fixtures/requests/init_recurring_debit_authorize.xml +32 -0
- data/test/fixtures/requests/init_recurring_debit_sale.json +34 -0
- data/test/fixtures/requests/init_recurring_debit_sale.xml +32 -0
- data/test/fixtures/requests/init_recurring_sale.json +34 -0
- data/test/fixtures/requests/init_recurring_sale.xml +33 -0
- data/test/fixtures/requests/init_recurring_sale_with_recurring_schedule.json +34 -0
- data/test/fixtures/requests/pay_in_advance.json +24 -0
- data/test/fixtures/requests/pay_in_advance.xml +23 -0
- data/test/fixtures/requests/pay_pal.json +23 -0
- data/test/fixtures/requests/pay_pal.xml +22 -0
- data/test/fixtures/requests/pay_safe_card_sale.json +23 -0
- data/test/fixtures/requests/pay_safe_card_sale.xml +23 -0
- data/test/fixtures/requests/payment_on_delivery.json +24 -0
- data/test/fixtures/requests/payment_on_delivery.xml +23 -0
- data/test/fixtures/requests/purchase_on_account.json +26 -0
- data/test/fixtures/requests/purchase_on_account.xml +23 -0
- data/test/fixtures/requests/reconcile.json +5 -0
- data/test/fixtures/requests/reconcile.xml +4 -0
- data/test/fixtures/requests/reconcile_by_date.json +7 -0
- data/test/fixtures/requests/reconcile_by_date.xml +6 -0
- data/test/fixtures/requests/recurring_debit_sale.json +11 -0
- data/test/fixtures/requests/recurring_debit_sale.xml +10 -0
- data/test/fixtures/requests/recurring_event.xml +4 -0
- data/test/fixtures/requests/recurring_sale.json +11 -0
- data/test/fixtures/requests/recurring_sale.xml +10 -0
- data/test/fixtures/requests/referenced_fund_transfer.json +11 -0
- data/test/fixtures/requests/referenced_fund_transfer.xml +10 -0
- data/test/fixtures/requests/refund.json +10 -0
- data/test/fixtures/requests/refund.xml +9 -0
- data/test/fixtures/requests/risk_params.json +10 -0
- data/test/fixtures/requests/risk_params.xml +9 -0
- data/test/fixtures/requests/sale.json +29 -0
- data/test/fixtures/requests/sale.xml +28 -0
- data/test/fixtures/requests/sale3d_async.json +32 -0
- data/test/fixtures/requests/sale3d_async.xml +31 -0
- data/test/fixtures/requests/sale3d_sync.json +34 -0
- data/test/fixtures/requests/sale3d_sync.xml +33 -0
- data/test/fixtures/requests/scheduler_create.json +9 -0
- data/test/fixtures/requests/scheduler_index_get_params.json +9 -0
- data/test/fixtures/requests/scheduler_update.json +8 -0
- data/test/fixtures/requests/void.json +8 -0
- data/test/fixtures/requests/void.xml +7 -0
- data/test/fixtures/responses/MobilePayment_new.json +20 -0
- data/test/fixtures/responses/MobilePayment_new.xml +19 -0
- data/test/fixtures/responses/PaymentNotification_echo.xml +4 -0
- data/test/fixtures/responses/PaymentTransactionNotification_echo.xml +4 -0
- data/test/fixtures/responses/WpfPayment_cancel.xml +13 -0
- data/test/fixtures/responses/WpfPayment_captured.xml +39 -0
- data/test/fixtures/responses/WpfPayment_error.json +8 -0
- data/test/fixtures/responses/WpfPayment_error.xml +7 -0
- data/test/fixtures/responses/WpfPayment_find.xml +39 -0
- data/test/fixtures/responses/WpfPayment_new.json +16 -0
- data/test/fixtures/responses/WpfPayment_new.xml +17 -0
- data/test/fixtures/responses/WpfPayment_refunded.xml +39 -0
- data/test/fixtures/responses/WpfPayment_voided.xml +39 -0
- data/test/fixtures/responses/authorize3d_pending_async.xml +15 -0
- data/test/fixtures/responses/authorize3d_sync.xml +14 -0
- data/test/fixtures/responses/authorize_approved.xml +14 -0
- data/test/fixtures/responses/authorize_error.json +16 -0
- data/test/fixtures/responses/authorize_error.xml +15 -0
- data/test/fixtures/responses/capture.xml +14 -0
- data/test/fixtures/responses/create_chargeback.xml +12 -0
- data/test/fixtures/responses/create_chargeback_reversal.xml +12 -0
- data/test/fixtures/responses/create_charged_debit_sale.xml +12 -0
- data/test/fixtures/responses/create_debit_chargeback.xml +12 -0
- data/test/fixtures/responses/create_deposit.xml +12 -0
- data/test/fixtures/responses/create_pre_arbitration.xml +12 -0
- data/test/fixtures/responses/create_rejected_debit_sale.xml +12 -0
- data/test/fixtures/responses/create_retrieval_request.xml +12 -0
- data/test/fixtures/responses/debit_sale.xml +12 -0
- data/test/fixtures/responses/direct_pay24_sale.xml +15 -0
- data/test/fixtures/responses/giro_pay_sale.xml +15 -0
- data/test/fixtures/responses/ideal_sale.xml +17 -0
- data/test/fixtures/responses/init_recurring_authorize.xml +14 -0
- data/test/fixtures/responses/init_recurring_debit_authorize.xml +17 -0
- data/test/fixtures/responses/init_recurring_debit_sale.xml +17 -0
- data/test/fixtures/responses/init_recurring_sale.xml +14 -0
- data/test/fixtures/responses/pay_in_advance.xml +17 -0
- data/test/fixtures/responses/pay_pal.xml +15 -0
- data/test/fixtures/responses/pay_safe_card_sale.xml +15 -0
- data/test/fixtures/responses/payment_on_delivery.xml +14 -0
- data/test/fixtures/responses/purchase_on_account.xml +18 -0
- data/test/fixtures/responses/reconcile_by_date_empty_result.xml +3 -0
- data/test/fixtures/responses/reconcile_by_date_page_1.xml +1293 -0
- data/test/fixtures/responses/reconcile_by_date_page_2.xml +1346 -0
- data/test/fixtures/responses/reconcile_by_date_page_3.xml +1394 -0
- data/test/fixtures/responses/reconcile_by_date_single_result.xml +16 -0
- data/test/fixtures/responses/recurring_debit_sale.xml +16 -0
- data/test/fixtures/responses/recurring_event.json +22 -0
- data/test/fixtures/responses/recurring_event.xml +21 -0
- data/test/fixtures/responses/recurring_sale.xml +14 -0
- data/test/fixtures/responses/referenced_fund_transfer.xml +14 -0
- data/test/fixtures/responses/refund.xml +14 -0
- data/test/fixtures/responses/sale.xml +12 -0
- data/test/fixtures/responses/sale3d_async.xml +15 -0
- data/test/fixtures/responses/sale3d_sync.xml +14 -0
- data/test/fixtures/responses/scheduled_transactions_empty.json +8 -0
- data/test/fixtures/responses/scheduled_transactions_one.json +22 -0
- data/test/fixtures/responses/scheduler.json +12 -0
- data/test/fixtures/responses/scheduler_empty_result.json +8 -0
- data/test/fixtures/responses/scheduler_error.json +7 -0
- data/test/fixtures/responses/scheduler_next.json +4 -0
- data/test/fixtures/responses/scheduler_page_1.json +93 -0
- data/test/fixtures/responses/scheduler_page_2.json +45 -0
- data/test/fixtures/responses/scheduler_single_result.json +21 -0
- data/test/fixtures/responses/void.xml +12 -0
- data/test/js/mobile_payment_test.js +287 -0
- data/test/php/all.php +9 -0
- data/test/php/authorize3d_test.php +546 -0
- data/test/php/authorize_test.php +546 -0
- data/test/php/capture_test.php +241 -0
- data/test/php/json_schema_validator_test.php +24 -0
- data/test/php/mobile_payment_test.php +238 -0
- data/test/php/reconcile_test.php +21 -0
- data/test/php/referenced_fund_transfer_test.php +183 -0
- data/test/php/refund_test.php +237 -0
- data/test/php/sale_test.php +546 -0
- data/test/php/test_helper.php +29 -0
- data/test/php/void_test.php +163 -0
- data/test/php/wpf_payment_test.php +19 -0
- data/test/ruby/authorize3d_async_spec.rb +29 -0
- data/test/ruby/authorize3d_sync_spec.rb +27 -0
- data/test/ruby/authorize_spec.rb +25 -0
- data/test/ruby/capture_spec.rb +16 -0
- data/test/ruby/debit_sale_spec.rb +26 -0
- data/test/ruby/direct_pay24_sale_spec.rb +30 -0
- data/test/ruby/giro_pay_sale_spec.rb +30 -0
- data/test/ruby/ideal_sale_spec.rb +29 -0
- data/test/ruby/init_recurring_authorize_spec.rb +26 -0
- data/test/ruby/init_recurring_debit_authorize_spec.rb +27 -0
- data/test/ruby/init_recurring_debit_sale_spec.rb +27 -0
- data/test/ruby/init_recurring_sale_spec.rb +26 -0
- data/test/ruby/mobile_payment_spec.rb +22 -0
- data/test/ruby/pay_in_advance_spec.rb +23 -0
- data/test/ruby/pay_pal_spec.rb +25 -0
- data/test/ruby/pay_safe_card_sale_spec.rb +24 -0
- data/test/ruby/payment_on_delivery_spec.rb +21 -0
- data/test/ruby/purchase_on_account_spec.rb +23 -0
- data/test/ruby/reconcile_spec.rb +11 -0
- data/test/ruby/recurring_debit_sale_spec.rb +17 -0
- data/test/ruby/recurring_sale_spec.rb +17 -0
- data/test/ruby/referenced_fund_transfer_spec.rb +17 -0
- data/test/ruby/refund_spec.rb +16 -0
- data/test/ruby/sale3d_async_spec.rb +29 -0
- data/test/ruby/sale3d_sync_spec.rb +27 -0
- data/test/ruby/sale_spec.rb +25 -0
- data/test/ruby/scheduler_spec.rb +43 -0
- data/test/ruby/test_helper.rb +74 -0
- data/test/ruby/types_specs.rb +1494 -0
- data/test/ruby/void_spec.rb +14 -0
- data/test/ruby/wpf_payment_spec.rb +27 -0
- metadata +527 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f42f9fd2a0d0dfcc80de2cead60aeeac59496f8e
|
4
|
+
data.tar.gz: 54f3f6c9fc23848ed41bf62432447ec281269f9a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 70d152927d4c8d8ecae91b3f7e040947448c257a977f504f3564570abf5de1928125383511e43a1b2a198c485d5f271c4c632e59bdb24e8d3e98a175f3b62ef0
|
7
|
+
data.tar.gz: 57381fcbc659d663177182520ecbfe6fc167fcddc54189285a8390928fa501ea92515940101a242b33bae9539d44edb497f9e9d08f38162f7f6ce4efcd28d143
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
hypercharge-schema (1.24.5)
|
5
|
+
json-schema (~> 2.1.3)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
columnize (0.3.6)
|
11
|
+
debugger (1.6.0)
|
12
|
+
columnize (>= 0.3.1)
|
13
|
+
debugger-linecache (~> 1.2.0)
|
14
|
+
debugger-ruby_core_source (~> 1.2.1)
|
15
|
+
debugger-linecache (1.2.0)
|
16
|
+
debugger-ruby_core_source (1.2.2)
|
17
|
+
json (1.8.0)
|
18
|
+
json (1.8.0-java)
|
19
|
+
json-schema (2.1.3)
|
20
|
+
minitest (4.7.5)
|
21
|
+
rake (10.1.0)
|
22
|
+
|
23
|
+
PLATFORMS
|
24
|
+
java
|
25
|
+
ruby
|
26
|
+
|
27
|
+
DEPENDENCIES
|
28
|
+
bundler (~> 1.3)
|
29
|
+
debugger
|
30
|
+
hypercharge-schema!
|
31
|
+
json
|
32
|
+
minitest (>= 4.7.5)
|
33
|
+
rake
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Jan Mentzel
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# hypercharge-schema
|
2
|
+
|
3
|
+
json-schema for hypercharge payment request data.
|
4
|
+
|
5
|
+
[![Build Status](https://travis-ci.org/hypercharge/hypercharge-schema.png?branch=master)](https://travis-ci.org/hypercharge/hypercharge-schema)
|
6
|
+
|
7
|
+
## Fixtures
|
8
|
+
|
9
|
+
There is a rather complete set of hypercharge API xml requests, respsonses and notifications provided as fixtures in ```/test/fixtures/```
|
10
|
+
|
11
|
+
A fixture loader is provided for php
|
12
|
+
```php
|
13
|
+
// requests to hypercharge
|
14
|
+
$xmlString = Hypercharge\JsonSchemaFixture::request('sale.xml');
|
15
|
+
// or as json string
|
16
|
+
$jsonString = Hypercharge\JsonSchemaFixture::request('sale.json');
|
17
|
+
// response from hypercharge
|
18
|
+
$xmlString = Hypercharge\JsonSchemaFixture::response('sale.xml');
|
19
|
+
```
|
20
|
+
|
21
|
+
and ruby
|
22
|
+
```ruby
|
23
|
+
# request to hypercharge
|
24
|
+
xmlString = Hypercharge::Schema::Fixture.xml 'request/sale'
|
25
|
+
# or as parsed json
|
26
|
+
jsonData = Hypercharge::Schema::Fixture.json 'request/sale'
|
27
|
+
# response from hypercharge
|
28
|
+
xmlString = Hypercharge::Schema::Fixture.xml 'response/sale'
|
29
|
+
```
|
30
|
+
|
31
|
+
## Tests
|
32
|
+
|
33
|
+
### Ruby
|
34
|
+
|
35
|
+
ruby >= 1.9.3
|
36
|
+
|
37
|
+
Install dependencies
|
38
|
+
|
39
|
+
bundle
|
40
|
+
|
41
|
+
Run tests
|
42
|
+
|
43
|
+
rake
|
44
|
+
|
45
|
+
### PHP
|
46
|
+
|
47
|
+
php >= 5.3
|
48
|
+
|
49
|
+
Install Composer and dependencies
|
50
|
+
|
51
|
+
curl -o composer.phar http://getcomposer.org/composer.phar
|
52
|
+
php composer.phar install
|
53
|
+
php composer.phar update --dev
|
54
|
+
|
55
|
+
run test
|
56
|
+
|
57
|
+
php test/php/all.php
|
58
|
+
|
59
|
+
### Nodejs
|
60
|
+
|
61
|
+
Install node.js an npm.
|
62
|
+
|
63
|
+
Install dependencies
|
64
|
+
|
65
|
+
npm install
|
66
|
+
|
67
|
+
run test
|
68
|
+
|
69
|
+
npm test
|
70
|
+
|
71
|
+
## Warranty
|
72
|
+
|
73
|
+
This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.
|
data/Rakefile
ADDED
data/composer.json
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name":"hypercharge/hypercharge-schema",
|
3
|
+
"description":"Hypercharge API JSON Schema",
|
4
|
+
"keywords": ["hypercharge", "payment", "api", "json", "schema"],
|
5
|
+
"hompage":"http://hypercharge.net",
|
6
|
+
"license":"MIT",
|
7
|
+
"require": {
|
8
|
+
"php": ">=5.3"
|
9
|
+
,"hypercharge/json-schema-php" : "~1.3"
|
10
|
+
},
|
11
|
+
"require-dev": {
|
12
|
+
"vierbergenlars/simpletest": "*"
|
13
|
+
},
|
14
|
+
"autoload": {
|
15
|
+
"classmap": ["lib/php/"]
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib/ruby/', __FILE__)
|
3
|
+
require File.expand_path('hypercharge/schema/version.rb', lib)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "hypercharge-schema"
|
8
|
+
spec.version = Hypercharge::Schema::VERSION
|
9
|
+
spec.authors = ["Luzifer Altenberg", "Jan Mentzel"]
|
10
|
+
spec.email = ["luzifer@atomgas.de", "jan@hypercharge.net"]
|
11
|
+
spec.summary = %q{hypercharge API requests json schema}
|
12
|
+
spec.homepage = "https://sankyu.com"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib/ruby/"]
|
19
|
+
|
20
|
+
spec.add_runtime_dependency 'json-schema', '~>2.1.3'
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~>1.3"
|
23
|
+
spec.add_development_dependency "minitest", '>=4.7.5'
|
24
|
+
spec.add_development_dependency 'json'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Hypercharge MobilePayment request",
|
3
|
+
"type":"object",
|
4
|
+
"$schema": "http://json-schema.org/draft-03/schema",
|
5
|
+
"additionalProperties":false,
|
6
|
+
"properties": {
|
7
|
+
"payment": {
|
8
|
+
"type":"object",
|
9
|
+
"required":true,
|
10
|
+
"additionalProperties":false,
|
11
|
+
"properties": {
|
12
|
+
"type": {
|
13
|
+
"description" : "Type of the Payment => static MobilePayment",
|
14
|
+
"type" : "string",
|
15
|
+
"required":true,
|
16
|
+
"pattern" : "^MobilePayment$"
|
17
|
+
},
|
18
|
+
"amount": {
|
19
|
+
"required":true,
|
20
|
+
"extends" : "types.json#/amount"
|
21
|
+
},
|
22
|
+
"currency": {
|
23
|
+
"required":true,
|
24
|
+
"extends" : "types.json#/currency"
|
25
|
+
},
|
26
|
+
"transaction_id": {
|
27
|
+
"required":true,
|
28
|
+
"extends" : "types.json#/transaction_id"
|
29
|
+
},
|
30
|
+
"usage": {
|
31
|
+
"required":true,
|
32
|
+
"extends" : "types.json#/usage"
|
33
|
+
},
|
34
|
+
"customer_email": {
|
35
|
+
"required": false,
|
36
|
+
"extends" : "types.json#/customer_email"
|
37
|
+
},
|
38
|
+
"customer_phone" : {
|
39
|
+
"extends": "types.json#/customer_phone"
|
40
|
+
},
|
41
|
+
"notification_url" : {
|
42
|
+
"description" : "URL at merchant’s site where gateway sends outcome of transaction after the payment has reached a final state. This should be an SSL secured page",
|
43
|
+
"required": true,
|
44
|
+
"extends" : "types.json#/url"
|
45
|
+
},
|
46
|
+
"billing_address": {
|
47
|
+
"required": false,
|
48
|
+
"extends": "types.json#/address"
|
49
|
+
},
|
50
|
+
"transaction_types": {
|
51
|
+
"required": false,
|
52
|
+
"extends" : "types.json#/transaction_types"
|
53
|
+
},
|
54
|
+
"retries": {
|
55
|
+
"required": false,
|
56
|
+
"extends": "types.json#/retries"
|
57
|
+
},
|
58
|
+
"expires_in": {
|
59
|
+
"required": false,
|
60
|
+
"extends": "types.json#/expires_in"
|
61
|
+
},
|
62
|
+
"risk_params" : {
|
63
|
+
"required": false,
|
64
|
+
"extends": "types.json#/risk_params"
|
65
|
+
},
|
66
|
+
"recurring_schedule":{
|
67
|
+
"required": false,
|
68
|
+
"extends": "types.json#/recurring_schedule"
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Hypercharge WpfPayment",
|
3
|
+
"type":"object",
|
4
|
+
"$schema": "http://json-schema.org/draft-03/schema",
|
5
|
+
"additionalProperties":false,
|
6
|
+
"properties": {
|
7
|
+
"payment": {
|
8
|
+
"type":"object",
|
9
|
+
"required":true,
|
10
|
+
"additionalProperties":false,
|
11
|
+
"properties": {
|
12
|
+
"type": {
|
13
|
+
"description" : "Type of the Payment => static WpfPayment",
|
14
|
+
"type" : "string",
|
15
|
+
"required":true,
|
16
|
+
"pattern" : "^WpfPayment$"
|
17
|
+
},
|
18
|
+
"amount": {
|
19
|
+
"required":true,
|
20
|
+
"extends" : "types.json#/amount"
|
21
|
+
},
|
22
|
+
"currency": {
|
23
|
+
"required":true,
|
24
|
+
"extends" : "types.json#/currency"
|
25
|
+
},
|
26
|
+
"transaction_id": {
|
27
|
+
"required":true,
|
28
|
+
"extends" : "types.json#/transaction_id"
|
29
|
+
},
|
30
|
+
"usage": {
|
31
|
+
"required":true,
|
32
|
+
"extends" : "types.json#/usage"
|
33
|
+
},
|
34
|
+
"description": {
|
35
|
+
"description": "a text describing the reason of the payment (e.g. ”you’re buying concert tickets”)",
|
36
|
+
"required":true,
|
37
|
+
"type" : "string",
|
38
|
+
"minLength": 1
|
39
|
+
},
|
40
|
+
"editable_by_user": {
|
41
|
+
"description": "if set to false the payment form will skip step 1. However a billing address musst be provided unless optional billing address is configured",
|
42
|
+
"required":false,
|
43
|
+
"type" : "boolean"
|
44
|
+
},
|
45
|
+
"customer_email": {
|
46
|
+
"required": false,
|
47
|
+
"extends" : "types.json#/customer_email"
|
48
|
+
},
|
49
|
+
"customer_phone" : {
|
50
|
+
"extends": "types.json#/customer_phone"
|
51
|
+
},
|
52
|
+
"notification_url" : {
|
53
|
+
"description" : "URL at merchant’s site where gateway sends outcome of transaction after the payment has reached a final state. This should be an SSL secured page",
|
54
|
+
"required": true,
|
55
|
+
"extends" : "types.json#/url"
|
56
|
+
},
|
57
|
+
"billing_address": {
|
58
|
+
"required": false,
|
59
|
+
"extends": "types.json#/address"
|
60
|
+
},
|
61
|
+
"transaction_types": {
|
62
|
+
"required": false,
|
63
|
+
"extends" : "types.json#/transaction_types"
|
64
|
+
},
|
65
|
+
"retries": {
|
66
|
+
"required": false,
|
67
|
+
"extends": "types.json#/retries"
|
68
|
+
},
|
69
|
+
"expires_in": {
|
70
|
+
"required": false,
|
71
|
+
"extends": "types.json#/expires_in"
|
72
|
+
},
|
73
|
+
"risk_params" : {
|
74
|
+
"required": false,
|
75
|
+
"extends": "types.json#/risk_params"
|
76
|
+
},
|
77
|
+
"recurring_schedule":{
|
78
|
+
"required": false,
|
79
|
+
"extends": "types.json#/recurring_schedule"
|
80
|
+
},
|
81
|
+
"return_success_url" : {
|
82
|
+
"description" : "URL where customer is sent to after successful payment",
|
83
|
+
"required": true,
|
84
|
+
"extends": "types.json#/url"
|
85
|
+
},
|
86
|
+
"return_failure_url" : {
|
87
|
+
"description" : "URL where customer is sent to after failed payment",
|
88
|
+
"required": true,
|
89
|
+
"extends": "types.json#/url"
|
90
|
+
},
|
91
|
+
"return_cancel_url" : {
|
92
|
+
"description" : "URL where customer is sent to when the customer cancels the payment process within the WPF",
|
93
|
+
"required": true,
|
94
|
+
"extends": "types.json#/url"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
data/json/authorize.json
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Hypercharge authorize Transaction request",
|
3
|
+
"type":"object",
|
4
|
+
"$schema": "http://json-schema.org/draft-03/schema",
|
5
|
+
"additionalProperties":false,
|
6
|
+
"properties": {
|
7
|
+
"payment_transaction": {
|
8
|
+
"type":"object",
|
9
|
+
"required":true,
|
10
|
+
"additionalProperties":false,
|
11
|
+
"properties": {
|
12
|
+
"transaction_type": {
|
13
|
+
"description": "Type of the Transaction => static 'authorize'",
|
14
|
+
"required":true,
|
15
|
+
"type" : "string",
|
16
|
+
"pattern" : "^authorize$"
|
17
|
+
},
|
18
|
+
"transaction_id": {
|
19
|
+
"required":true,
|
20
|
+
"extends" : "types.json#/transaction_id"
|
21
|
+
},
|
22
|
+
"usage": {
|
23
|
+
"required":false,
|
24
|
+
"extends" : "types.json#/usage"
|
25
|
+
},
|
26
|
+
"remote_ip": {
|
27
|
+
"required":true,
|
28
|
+
"extends": "types.json#/ipv4"
|
29
|
+
},
|
30
|
+
"amount": {
|
31
|
+
"required":true,
|
32
|
+
"extends" : "types.json#/amount"
|
33
|
+
},
|
34
|
+
"currency": {
|
35
|
+
"required":true,
|
36
|
+
"extends" : "types.json#/currency"
|
37
|
+
},
|
38
|
+
"card_holder": {
|
39
|
+
"required":true,
|
40
|
+
"extends" : "types.json#/card_holder"
|
41
|
+
},
|
42
|
+
"card_number" : {
|
43
|
+
"required":true,
|
44
|
+
"extends" : "types.json#/card_number"
|
45
|
+
},
|
46
|
+
"cvv" : {
|
47
|
+
"required":false,
|
48
|
+
"extends" : "types.json#/cvv"
|
49
|
+
},
|
50
|
+
"expiration_month" : {
|
51
|
+
"required":true,
|
52
|
+
"extends" : "types.json#/expiration_month"
|
53
|
+
},
|
54
|
+
"expiration_year": {
|
55
|
+
"required":true,
|
56
|
+
"extends" : "types.json#/expiration_year"
|
57
|
+
},
|
58
|
+
"customer_email": {
|
59
|
+
"required":true,
|
60
|
+
"extends" : "types.json#/customer_email"
|
61
|
+
},
|
62
|
+
"customer_phone" : {
|
63
|
+
"required":false,
|
64
|
+
"extends" : "types.json#/customer_phone"
|
65
|
+
},
|
66
|
+
"billing_address": {
|
67
|
+
"required": true,
|
68
|
+
"extends": "types.json#/address"
|
69
|
+
},
|
70
|
+
"risk_params" : {
|
71
|
+
"required": false,
|
72
|
+
"extends": "types.json#/risk_params"
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|