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
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<billing_address>
|
5
|
+
<address1>Test Str. 123</address1>
|
6
|
+
<city>Berlin</city>
|
7
|
+
<country>DE</country>
|
8
|
+
<first_name>Manfred</first_name>
|
9
|
+
<last_name>Test</last_name>
|
10
|
+
<zip_code>12345</zip_code>
|
11
|
+
</billing_address>
|
12
|
+
<currency>EUR</currency>
|
13
|
+
<customer_email>manfred.test@example.com</customer_email>
|
14
|
+
<customer_phone>+49301234567</customer_phone>
|
15
|
+
<remote_ip>127.0.0.1</remote_ip>
|
16
|
+
<risk_params>
|
17
|
+
<ssn>This is a string</ssn>
|
18
|
+
<user_id>This is a string</user_id>
|
19
|
+
</risk_params>
|
20
|
+
<transaction_id>145236</transaction_id>
|
21
|
+
<transaction_type>purchase_on_account</transaction_type>
|
22
|
+
<usage>40208 concert tickets</usage>
|
23
|
+
</payment_transaction>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"payment_transaction":{
|
3
|
+
"transaction_type":"recurring_debit_sale",
|
4
|
+
"transaction_id":"43671",
|
5
|
+
"usage":"40208 concert tickets",
|
6
|
+
"remote_ip":"127.0.0.1",
|
7
|
+
"amount":5000,
|
8
|
+
"currency":"USD",
|
9
|
+
"reference_id":"2ee4287e67971380ef7f97d5743bb523"
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<currency>USD</currency>
|
5
|
+
<reference_id>2ee4287e67971380ef7f97d5743bb523</reference_id>
|
6
|
+
<remote_ip>127.0.0.1</remote_ip>
|
7
|
+
<transaction_id>43671</transaction_id>
|
8
|
+
<transaction_type>recurring_debit_sale</transaction_type>
|
9
|
+
<usage>40208 concert tickets</usage>
|
10
|
+
</payment_transaction>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<currency>USD</currency>
|
5
|
+
<reference_id>2ee4287e67971380ef7f97d5743bb523</reference_id>
|
6
|
+
<remote_ip>127.0.0.1</remote_ip>
|
7
|
+
<transaction_id>43671</transaction_id>
|
8
|
+
<transaction_type>recurring_sale</transaction_type>
|
9
|
+
<usage>40208 concert tickets</usage>
|
10
|
+
</payment_transaction>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"payment_transaction": {
|
3
|
+
"transaction_type":"referenced_fund_transfer",
|
4
|
+
"transaction_id":"B62D6848-78EA-4910-BFD8-920A3BF10CC5",
|
5
|
+
"reference_id":"57b3a7b166ffe873d0a11863560b410c",
|
6
|
+
"usage":"40208 concert canceld",
|
7
|
+
"remote_ip":"245.253.2.12",
|
8
|
+
"amount":5000,
|
9
|
+
"currency":"USD"
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<currency>USD</currency>
|
5
|
+
<reference_id>57b3a7b166ffe873d0a11863560b410c</reference_id>
|
6
|
+
<remote_ip>245.253.2.12</remote_ip>
|
7
|
+
<transaction_id>B62D6848-78EA-4910-BFD8-920A3BF10CC5</transaction_id>
|
8
|
+
<transaction_type>referenced_fund_transfer</transaction_type>
|
9
|
+
<usage>40208 concert canceld</usage>
|
10
|
+
</payment_transaction>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<currency>USD</currency>
|
5
|
+
<reference_id>57b3a7b166ffe873d0a11863560b410c</reference_id>
|
6
|
+
<transaction_id>134rt6</transaction_id>
|
7
|
+
<transaction_type>refund</transaction_type>
|
8
|
+
<usage>40208 concert canceld</usage>
|
9
|
+
</payment_transaction>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<email>emil@example.com</email>
|
3
|
+
<mac_address>12-34-56-78-9A-BC</mac_address>
|
4
|
+
<phone>+49301234567</phone>
|
5
|
+
<remote_ip>245.253.2.12</remote_ip>
|
6
|
+
<session_id>1DA53551-5C60-498C-9C18-8456BDBA74A9</session_id>
|
7
|
+
<ssn>987-65-4320</ssn>
|
8
|
+
<user_id>1002547</user_id>
|
9
|
+
<user_level>vip</user_level>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"payment_transaction": {
|
3
|
+
"transaction_type":"sale",
|
4
|
+
"transaction_id":"43671",
|
5
|
+
"usage":"40208 concert tickets",
|
6
|
+
"remote_ip":"245.253.2.12",
|
7
|
+
"amount":5000,
|
8
|
+
"currency":"USD",
|
9
|
+
"card_holder":"Emil Example",
|
10
|
+
"card_number":"4200000000000000",
|
11
|
+
"cvv":"123",
|
12
|
+
"expiration_month":"2",
|
13
|
+
"expiration_year":"2010",
|
14
|
+
"customer_email":"emil@example.com",
|
15
|
+
"customer_phone":"+49301234567",
|
16
|
+
"billing_address": {
|
17
|
+
"first_name":"Max",
|
18
|
+
"last_name":"Mustermann",
|
19
|
+
"address1":"Muster Str. 12",
|
20
|
+
"zip_code":"10178",
|
21
|
+
"city":"Berlin",
|
22
|
+
"country":"DE"
|
23
|
+
},
|
24
|
+
"risk_params":{
|
25
|
+
"ssn":"This is a string",
|
26
|
+
"user_id":"This is a string"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<billing_address>
|
5
|
+
<address1>Muster Str. 12</address1>
|
6
|
+
<city>Berlin</city>
|
7
|
+
<country>DE</country>
|
8
|
+
<first_name>Max</first_name>
|
9
|
+
<last_name>Mustermann</last_name>
|
10
|
+
<zip_code>10178</zip_code>
|
11
|
+
</billing_address>
|
12
|
+
<card_holder>Emil Example</card_holder>
|
13
|
+
<card_number>4200000000000000</card_number>
|
14
|
+
<currency>USD</currency>
|
15
|
+
<customer_email>emil@example.com</customer_email>
|
16
|
+
<customer_phone>+49301234567</customer_phone>
|
17
|
+
<cvv>123</cvv>
|
18
|
+
<expiration_month>2</expiration_month>
|
19
|
+
<expiration_year>2010</expiration_year>
|
20
|
+
<remote_ip>245.253.2.12</remote_ip>
|
21
|
+
<risk_params>
|
22
|
+
<ssn>This is a string</ssn>
|
23
|
+
<user_id>This is a string</user_id>
|
24
|
+
</risk_params>
|
25
|
+
<transaction_id>43671</transaction_id>
|
26
|
+
<transaction_type>sale</transaction_type>
|
27
|
+
<usage>40208 concert tickets</usage>
|
28
|
+
</payment_transaction>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"payment_transaction": {
|
3
|
+
"transaction_type":"sale3d",
|
4
|
+
"transaction_id":"43671",
|
5
|
+
"usage":"40208 concert tickets",
|
6
|
+
"remote_ip":"245.253.2.12",
|
7
|
+
"amount":5000,
|
8
|
+
"currency":"USD",
|
9
|
+
"card_holder":"Emil Example",
|
10
|
+
"card_number":"4200000000000000",
|
11
|
+
"cvv":"123",
|
12
|
+
"expiration_month":"02",
|
13
|
+
"expiration_year":"2010",
|
14
|
+
"customer_email":"emil@example.com",
|
15
|
+
"customer_phone":"+49301234567",
|
16
|
+
"billing_address": {
|
17
|
+
"first_name":"Max",
|
18
|
+
"last_name":"Mustermann",
|
19
|
+
"address1":"Muster Str. 12",
|
20
|
+
"zip_code":"10178",
|
21
|
+
"city":"Berlin",
|
22
|
+
"country":"DE"
|
23
|
+
},
|
24
|
+
"notification_url":"https://www.example.com/notification",
|
25
|
+
"return_success_url":"http://www.example.com/success.html",
|
26
|
+
"return_failure_url":"http://www.example.com/failure.html",
|
27
|
+
"risk_params":{
|
28
|
+
"ssn":"This is a string",
|
29
|
+
"user_id":"This is a string"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<billing_address>
|
5
|
+
<address1>Muster Str. 12</address1>
|
6
|
+
<city>Berlin</city>
|
7
|
+
<country>DE</country>
|
8
|
+
<first_name>Max</first_name>
|
9
|
+
<last_name>Mustermann</last_name>
|
10
|
+
<zip_code>10178</zip_code>
|
11
|
+
</billing_address>
|
12
|
+
<card_holder>Emil Example</card_holder>
|
13
|
+
<card_number>4200000000000000</card_number>
|
14
|
+
<currency>USD</currency>
|
15
|
+
<customer_email>emil@example.com</customer_email>
|
16
|
+
<customer_phone>+49301234567</customer_phone>
|
17
|
+
<cvv>123</cvv>
|
18
|
+
<expiration_month>02</expiration_month>
|
19
|
+
<expiration_year>2010</expiration_year>
|
20
|
+
<notification_url>https://www.example.com/notification</notification_url>
|
21
|
+
<remote_ip>245.253.2.12</remote_ip>
|
22
|
+
<return_failure_url>http://www.example.com/failure.html</return_failure_url>
|
23
|
+
<return_success_url>http://www.example.com/success.html</return_success_url>
|
24
|
+
<risk_params>
|
25
|
+
<ssn>This is a string</ssn>
|
26
|
+
<user_id>This is a string</user_id>
|
27
|
+
</risk_params>
|
28
|
+
<transaction_id>43671</transaction_id>
|
29
|
+
<transaction_type>sale3d</transaction_type>
|
30
|
+
<usage>40208 concert tickets</usage>
|
31
|
+
</payment_transaction>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"payment_transaction":{
|
3
|
+
"transaction_type":"sale3d",
|
4
|
+
"transaction_id":"43671",
|
5
|
+
"usage":"40208 concert tickets",
|
6
|
+
"remote_ip":"245.253.2.12",
|
7
|
+
"amount":5000,
|
8
|
+
"currency":"USD",
|
9
|
+
"card_holder":"Emil Example",
|
10
|
+
"card_number":"4200000000000000",
|
11
|
+
"cvv":"123",
|
12
|
+
"expiration_month":"2",
|
13
|
+
"expiration_year":"2010",
|
14
|
+
"customer_email":"emil@example.com",
|
15
|
+
"customer_phone":"+49301234567",
|
16
|
+
"mpi_params":{
|
17
|
+
"cavv":"AAACA1BHADYJkIASQkcAAAAAAAA=",
|
18
|
+
"eci":"05",
|
19
|
+
"xid":"0pv62FIrT5qQODB7DCewKgEBAQI="
|
20
|
+
},
|
21
|
+
"billing_address":{
|
22
|
+
"first_name":"Max",
|
23
|
+
"last_name":"Mustermann",
|
24
|
+
"address1":"Muster Str. 12",
|
25
|
+
"zip_code":"10178",
|
26
|
+
"city":"Berlin",
|
27
|
+
"country":"DE"
|
28
|
+
},
|
29
|
+
"risk_params":{
|
30
|
+
"ssn":"This is a string",
|
31
|
+
"user_id":"This is a string"
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<amount>5000</amount>
|
4
|
+
<billing_address>
|
5
|
+
<address1>Muster Str. 12</address1>
|
6
|
+
<city>Berlin</city>
|
7
|
+
<country>DE</country>
|
8
|
+
<first_name>Max</first_name>
|
9
|
+
<last_name>Mustermann</last_name>
|
10
|
+
<zip_code>10178</zip_code>
|
11
|
+
</billing_address>
|
12
|
+
<card_holder>Emil Example</card_holder>
|
13
|
+
<card_number>4200000000000000</card_number>
|
14
|
+
<currency>USD</currency>
|
15
|
+
<customer_email>emil@example.com</customer_email>
|
16
|
+
<customer_phone>+49301234567</customer_phone>
|
17
|
+
<cvv>123</cvv>
|
18
|
+
<expiration_month>2</expiration_month>
|
19
|
+
<expiration_year>2010</expiration_year>
|
20
|
+
<mpi_params>
|
21
|
+
<cavv>AAACA1BHADYJkIASQkcAAAAAAAA=</cavv>
|
22
|
+
<eci>05</eci>
|
23
|
+
<xid>0pv62FIrT5qQODB7DCewKgEBAQI=</xid>
|
24
|
+
</mpi_params>
|
25
|
+
<remote_ip>245.253.2.12</remote_ip>
|
26
|
+
<risk_params>
|
27
|
+
<ssn>This is a string</ssn>
|
28
|
+
<user_id>This is a string</user_id>
|
29
|
+
</risk_params>
|
30
|
+
<transaction_id>43671</transaction_id>
|
31
|
+
<transaction_type>sale3d</transaction_type>
|
32
|
+
<usage>40208 concert tickets</usage>
|
33
|
+
</payment_transaction>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<payment_transaction>
|
3
|
+
<reference_id>57b3a7b166ffe873d0a11863560b410c</reference_id>
|
4
|
+
<transaction_id>134rt78956</transaction_id>
|
5
|
+
<transaction_type>void</transaction_type>
|
6
|
+
<usage>40208 concert canceled</usage>
|
7
|
+
</payment_transaction>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"payment":{
|
3
|
+
"type":"MobilePayment",
|
4
|
+
"status":"new",
|
5
|
+
"unique_id":"eabcb7a41044e764746b0c7e32c1e9d1",
|
6
|
+
"transaction_id":"wev238f328nc",
|
7
|
+
"technical_message":"TESTMODE: No real money will be transferred!",
|
8
|
+
"message":"TESTMODE: No real money will be transferred!",
|
9
|
+
"mode":"test",
|
10
|
+
"timestamp":"2011-04-19T15:00:11Z",
|
11
|
+
"amount":"5000",
|
12
|
+
"currency":"USD",
|
13
|
+
"redirect_url":"https://testpayment.hypercharge.net/mobile/submit/eabcb7a41044e764746b0c7e32c1e9d1",
|
14
|
+
"cancel_url":"https://testpayment.hypercharge.net/mobile/cancel/eabcb7a41044e764746b0c7e32c1e9d1",
|
15
|
+
"payment_methods":[
|
16
|
+
"credit_card",
|
17
|
+
"direct_debit"
|
18
|
+
]
|
19
|
+
}
|
20
|
+
}
|