adyen-ruby-api-library 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.travis.yml +14 -0
  4. data/Gemfile +12 -0
  5. data/LICENSE +21 -0
  6. data/README.md +140 -0
  7. data/Rakefile +6 -0
  8. data/adyen-ruby-api-library.gemspec +28 -0
  9. data/bin/console +13 -0
  10. data/bin/setup +8 -0
  11. data/docs/checkout.html +111 -0
  12. data/docs/index.html +50 -0
  13. data/docs/install-library.html +61 -0
  14. data/docs/javascripts/prism.js +5 -0
  15. data/docs/javascripts/scale.fix.js +17 -0
  16. data/docs/marketpay.html +169 -0
  17. data/docs/params.json +1 -0
  18. data/docs/payment.html +106 -0
  19. data/docs/payout.html +135 -0
  20. data/docs/recurring.html +113 -0
  21. data/docs/stylesheets/github-light.css +115 -0
  22. data/docs/stylesheets/prism.css +140 -0
  23. data/docs/stylesheets/styles.css +324 -0
  24. data/docs/using-library.html +67 -0
  25. data/lib/adyen-ruby-api-library.rb +21 -0
  26. data/lib/adyen/client.rb +174 -0
  27. data/lib/adyen/errors.rb +76 -0
  28. data/lib/adyen/services/checkout.rb +50 -0
  29. data/lib/adyen/services/checkout_utility.rb +16 -0
  30. data/lib/adyen/services/marketpay.rb +92 -0
  31. data/lib/adyen/services/payments.rb +23 -0
  32. data/lib/adyen/services/payouts.rb +21 -0
  33. data/lib/adyen/services/recurring.rb +19 -0
  34. data/lib/adyen/services/service.rb +19 -0
  35. data/lib/adyen/version.rb +4 -0
  36. data/spec/account_spec.rb +27 -0
  37. data/spec/checkout_spec.rb +94 -0
  38. data/spec/checkout_utility_spec.rb +27 -0
  39. data/spec/client_spec.rb +40 -0
  40. data/spec/fund_spec.rb +19 -0
  41. data/spec/mocks/requests/Account/close_account.json +3 -0
  42. data/spec/mocks/requests/Account/close_account_holder.json +3 -0
  43. data/spec/mocks/requests/Account/create_account.json +3 -0
  44. data/spec/mocks/requests/Account/create_account_holder.json +15 -0
  45. data/spec/mocks/requests/Account/delete_bank_accounts.json +6 -0
  46. data/spec/mocks/requests/Account/delete_shareholders.json +6 -0
  47. data/spec/mocks/requests/Account/get_account_holder.json +3 -0
  48. data/spec/mocks/requests/Account/get_uploaded_documents.json +4 -0
  49. data/spec/mocks/requests/Account/suspend_account_holder.json +3 -0
  50. data/spec/mocks/requests/Account/un_suspend_account_holder.json +3 -0
  51. data/spec/mocks/requests/Account/update_account.json +7 -0
  52. data/spec/mocks/requests/Account/update_account_holder.json +33 -0
  53. data/spec/mocks/requests/Account/update_account_holder_state.json +6 -0
  54. data/spec/mocks/requests/Account/upload_document.json +9 -0
  55. data/spec/mocks/requests/Checkout/payment-details.json +18 -0
  56. data/spec/mocks/requests/Checkout/payment-result.json +3 -0
  57. data/spec/mocks/requests/Checkout/payment_methods.json +3 -0
  58. data/spec/mocks/requests/Checkout/payment_session.json +15 -0
  59. data/spec/mocks/requests/Checkout/payments.json +17 -0
  60. data/spec/mocks/requests/Checkout/verify.json +3 -0
  61. data/spec/mocks/requests/CheckoutUtility/origin_keys.json +7 -0
  62. data/spec/mocks/requests/Fund/account_holder_balance.json +3 -0
  63. data/spec/mocks/requests/Fund/account_holder_transaction_list.json +16 -0
  64. data/spec/mocks/requests/Fund/payout_account_holder.json +10 -0
  65. data/spec/mocks/requests/Fund/refund_not_paid_out_transfers.json +4 -0
  66. data/spec/mocks/requests/Fund/setup_beneficiary.json +5 -0
  67. data/spec/mocks/requests/Fund/transfer_funds.json +9 -0
  68. data/spec/mocks/requests/Notification/create_notification_configuration.json +20 -0
  69. data/spec/mocks/requests/Notification/delete_notification_configurations.json +6 -0
  70. data/spec/mocks/requests/Notification/get_notification_configuration.json +3 -0
  71. data/spec/mocks/requests/Notification/get_notification_configuration_list.json +1 -0
  72. data/spec/mocks/requests/Notification/test_notification_configuration.json +4 -0
  73. data/spec/mocks/requests/Notification/update_notification_configuration.json +26 -0
  74. data/spec/mocks/requests/Payment/adjust_authorisation.json +12 -0
  75. data/spec/mocks/requests/Payment/authorise.json +28 -0
  76. data/spec/mocks/requests/Payment/authorise3d.json +6 -0
  77. data/spec/mocks/requests/Payment/cancel.json +4 -0
  78. data/spec/mocks/requests/Payment/cancel_or_refund.json +4 -0
  79. data/spec/mocks/requests/Payment/capture.json +8 -0
  80. data/spec/mocks/requests/Payment/refund.json +8 -0
  81. data/spec/mocks/requests/Payout/confirm_third_party.json +4 -0
  82. data/spec/mocks/requests/Payout/decline_third_party.json +4 -0
  83. data/spec/mocks/requests/Payout/store_detail.json +33 -0
  84. data/spec/mocks/requests/Payout/store_detail_and_submit_third_party.json +33 -0
  85. data/spec/mocks/requests/Payout/submit_third_party.json +22 -0
  86. data/spec/mocks/requests/Recurring/disable.json +5 -0
  87. data/spec/mocks/requests/Recurring/list_recurring_details.json +4 -0
  88. data/spec/mocks/requests/Recurring/store_token.json +15 -0
  89. data/spec/mocks/responses/Account/close_account.json +5 -0
  90. data/spec/mocks/responses/Account/close_account_holder.json +7 -0
  91. data/spec/mocks/responses/Account/create_account.json +7 -0
  92. data/spec/mocks/responses/Account/create_account_holder.json +116 -0
  93. data/spec/mocks/responses/Account/delete_bank_accounts.json +4 -0
  94. data/spec/mocks/responses/Account/delete_shareholders.json +4 -0
  95. data/spec/mocks/responses/Account/get_account_holder.json +71 -0
  96. data/spec/mocks/responses/Account/get_uploaded_documents.json +16 -0
  97. data/spec/mocks/responses/Account/suspend_account_holder.json +24 -0
  98. data/spec/mocks/responses/Account/un_suspend_account_holder.json +24 -0
  99. data/spec/mocks/responses/Account/update_account.json +9 -0
  100. data/spec/mocks/responses/Account/update_account_holder.json +95 -0
  101. data/spec/mocks/responses/Account/update_account_holder_state.json +27 -0
  102. data/spec/mocks/responses/Account/upload_document.json +77 -0
  103. data/spec/mocks/responses/Checkout/payment-details.json +14 -0
  104. data/spec/mocks/responses/Checkout/payment-result.json +4 -0
  105. data/spec/mocks/responses/Checkout/payment_methods.json +66 -0
  106. data/spec/mocks/responses/Checkout/payment_session.json +572 -0
  107. data/spec/mocks/responses/Checkout/payments.json +95 -0
  108. data/spec/mocks/responses/Checkout/verify.json +121 -0
  109. data/spec/mocks/responses/CheckoutUtility/origin_keys.json +7 -0
  110. data/spec/mocks/responses/Fund/account_holder_balance.json +47 -0
  111. data/spec/mocks/responses/Fund/account_holder_transaction_list.json +73 -0
  112. data/spec/mocks/responses/Fund/payout_account_holder.json +6 -0
  113. data/spec/mocks/responses/Fund/refund_not_paid_out_transfers.json +5 -0
  114. data/spec/mocks/responses/Fund/setup_beneficiary.json +5 -0
  115. data/spec/mocks/responses/Fund/transfer_funds.json +6 -0
  116. data/spec/mocks/responses/Notification/create_notification_configuration.json +41 -0
  117. data/spec/mocks/responses/Notification/delete_notification_configurations.json +23 -0
  118. data/spec/mocks/responses/Notification/get_notification_configuration.json +41 -0
  119. data/spec/mocks/responses/Notification/get_notification_configuration_list.json +65 -0
  120. data/spec/mocks/responses/Notification/test_notification_configuration.json +49 -0
  121. data/spec/mocks/responses/Notification/update_notification_configuration.json +47 -0
  122. data/spec/mocks/responses/Payment/adjust_authorisation.json +4 -0
  123. data/spec/mocks/responses/Payment/authorise.json +95 -0
  124. data/spec/mocks/responses/Payment/authorise3d.json +30 -0
  125. data/spec/mocks/responses/Payment/cancel.json +4 -0
  126. data/spec/mocks/responses/Payment/cancel_or_refund.json +4 -0
  127. data/spec/mocks/responses/Payment/capture.json +4 -0
  128. data/spec/mocks/responses/Payment/refund.json +4 -0
  129. data/spec/mocks/responses/Payout/confirm_third_party.json +4 -0
  130. data/spec/mocks/responses/Payout/decline_third_party.json +4 -0
  131. data/spec/mocks/responses/Payout/store_detail.json +5 -0
  132. data/spec/mocks/responses/Payout/store_detail_and_submit_third_party.json +8 -0
  133. data/spec/mocks/responses/Payout/submit_third_party.json +8 -0
  134. data/spec/mocks/responses/Recurring/disable.json +30 -0
  135. data/spec/mocks/responses/Recurring/list_recurring_details.json +62 -0
  136. data/spec/mocks/responses/Recurring/store_token.json +7 -0
  137. data/spec/notification_spec.rb +19 -0
  138. data/spec/payments_spec.rb +20 -0
  139. data/spec/payouts_spec.rb +18 -0
  140. data/spec/recurring_spec.rb +17 -0
  141. data/spec/spec_helper.rb +94 -0
  142. metadata +246 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ "payload": "VALUE_YOU_GET_FROM_CHECKOUT_SDK"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "merchantAccount": "TestMerchant"
3
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "amount": {
3
+ "value": 1500,
4
+ "currency": "EUR"
5
+ },
6
+ "channel": "Web",
7
+ "countryCode": "US",
8
+ "html": true,
9
+ "origin": "www.example.com",
10
+ "returnUrl": "www.example.com",
11
+ "shopperLocale": "en_GB",
12
+ "shopperCountry": "US",
13
+ "reference": "Merchant Reference",
14
+ "merchantAccount": "TestMerchant"
15
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "amount": {
3
+ "currency": "USD",
4
+ "value": 1000
5
+ },
6
+ "reference": "Mock payment",
7
+ "paymentMethod": {
8
+ "type": "scheme",
9
+ "number": "4111111111111111",
10
+ "expiryMonth": "08",
11
+ "expiryYear": "2018",
12
+ "holderName": "John Smith",
13
+ "cvc": "737"
14
+ },
15
+ "returnUrl": "",
16
+ "merchantAccount": "TestMerchant"
17
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "payload":"Hee57361f99ddcf4!ZW5jcnlwdGVkPUJRQUJBZ0FWJTJCNXkzOXJ5ZVhkQWNvWW9tcTFrOEpRQldvVzJ0bjV4NFJtT2VESEVENTRuSFg5bVVtNG52MFE2SUZzJTJCbyUyQjRVbmtMZ2c0UHclMkZ0ZTR2MjdscXVnNlhuZmh3Yk4lMkZ1bTEySXZIUnBuQUo0VmJFdXBtelVUeEh6aW9yTDRWbSUyRkppdHFjSkozc204NTNyM0xpMXN3cDU5RzQlMkZrMzVsdDBvb0lqaElWazBRWGJFZzR5d1JocllrSnExaE5sZnBKTWl4ZFdHQm9tSThTY21yNXNKNz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1bkExOWpVTXdqSTQxUlhTZ0R6Z1JMb1BNRG5ESGVBd2lrSm5rQ3BReE1oZk9ZejMlMkZDRFJ4SkVrUVlYSjNTajNubGgxNVFxUzg2Tmk0Tk1NT0EwaDZKZ0RKQ3ZFSW5PdDlQbnZmZDF3M0Nkdnc4UEJvTmRFOW1iJTJCekNMOGttY3FMV0pDRFYxTG5aYjYyVmlERXVPWTByVnJCOW1OQ09xUVB6UzBFOXNFYVpWc1FKNCUyRkFmWUxORUxybHhaQkJ6YWxFRzREZUttJTJCSlVFNXlzME5KcTBSeG5XMlgzczZhbGJhM3dnVGUlMkZLWHZHcEtxVVZmZVIyWGN6Q3lUWUtkc3BkNXdLVTJDaXUwZCUyQlVZY2xuaGoyZGpUbVlIMjR0Y2EyR2I2SDJ3M2JGakklMkZnejRJRjdnblBuJTJGaFRVMEYlMkZqSFR5bHU4NHo2TGkyaSUyQm1Kb0RRU1NkVHpEc3kzODNTQzl1T1d4NDFiQTRleFdNTXR0UVlNNnc0TVYySkElMkJnQUpxOW53UDlUSnpiWUpnZnJKJTJGQzklMkZwNUF1NUNldk11TlNVRlp6bk1VTUhuS3JubXJnMDhWM2JzVVNmcFp2QjVlOEk3djMybHFXJTJGNEhkeVpXNXBVSjJaa3pGakVTQmx5Rmk5TmYzMjV3TTd1Y25seEczekd0NVoyaWlGUHdBSGFSb25DcEswVXFQaklzYXlSbklBJTJGakFVM0w4JTJGWjB4RmFDWkp1czVhc05wTSUyRlRUV0ExeUxIcFQlMkJqWmd6WWdBbUo0WWFaWTJwMFBkZ1ltMElxYkRmZ2omdmVyc2lvbj0y"
3
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "originDomains": [
3
+ "https://www.your-domain1.com",
4
+ "https://www.your-domain2.com",
5
+ "https://www.your-domain3.com"
6
+ ]
7
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "accountHolderCode": "TestAccountHolder877209"
3
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "accountHolderCode": "TestAccountHolder423978",
3
+ "transactionStatuses": [
4
+ "PendingCredit",
5
+ "Credited",
6
+ "Debited"
7
+ ],
8
+ "transactionListsPerAccount": [
9
+ {
10
+ "TransactionListForAccount": {
11
+ "accountCode": "2e64b396-1200-4474-b848-0cb06b52b3c7",
12
+ "page": 2
13
+ }
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "accountCode": "118731451",
3
+ "amount": {
4
+ "currency": "EUR",
5
+ "value": 99792
6
+ },
7
+ "accountHolderCode": "TestAccountHolder877209",
8
+ "description": "12345 – Test",
9
+ "bankAccountUUID": "000b81aa-ae7e-4492-aa7e-72b2129dce0c"
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "accountHolderCode": "TestAccountHolder502924",
3
+ "accountCode": "189184578"
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "destinationAccountCode": "128952522",
3
+ "merchantReference": "Test",
4
+ "sourceAccountCode": "134498192"
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "sourceAccountCode": "100000000",
3
+ "destinationAccountCode": "190324759",
4
+ "amount": {
5
+ "currency": "EUR",
6
+ "value": 2000
7
+ },
8
+ "transferCode": "CODE_A"
9
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "configurationDetails": {
3
+ "active": "true",
4
+ "description": "Test notification769551",
5
+ "eventConfigs": [
6
+ {
7
+ "NotificationEventConfiguration": {
8
+ "eventType": "ACCOUNT_HOLDER_VERIFICATION",
9
+ "includeMode": "INCLUDE"
10
+ }
11
+ }
12
+ ],
13
+ "messageFormat": "SOAP",
14
+ "notifyURL": "https://www.merchant-domain.com/notification-handler",
15
+ "notifyUsername": "testUserName",
16
+ "notifyPassword": "testPassword",
17
+ "sendActionHeader": "true",
18
+ "sslProtocol": "SSL"
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "notificationIds": [
3
+ 134678887,
4
+ 234674578
5
+ ]
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "notificationId": 234674578
3
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "eventTypes": [],
3
+ "notificationId": 234674578
4
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "configurationDetails": {
3
+ "active": "false",
4
+ "description": "new description799847",
5
+ "eventConfigs": [
6
+ {
7
+ "NotificationEventConfiguration": {
8
+ "eventType": "ACCOUNT_HOLDER_CREATED",
9
+ "includeMode": "EXCLUDE"
10
+ }
11
+ },
12
+ {
13
+ "NotificationEventConfiguration": {
14
+ "eventType": "ACCOUNT_CREATED",
15
+ "includeMode": "INCLUDE"
16
+ }
17
+ }
18
+ ],
19
+ "notificationId": 234674578,
20
+ "notifyPassword": "testPassword2",
21
+ "notifyURL": "http://www.adyen.com",
22
+ "notifyUsername": "testUserName2",
23
+ "sendActionHeader": "false",
24
+ "sslProtocol": "TLSv10"
25
+ }
26
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "merchantAccount" : "TestMerchant",
3
+ "modificationAmount" : {
4
+ "currency" : "EUR",
5
+ "value" : 1500
6
+ },
7
+ "originalReference" : "8123456789012345",
8
+ "reference" : "Adjust Authorisation",
9
+ "additionalData" : {
10
+ "industryUsage" : "DelayedCharge"
11
+ }
12
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "card": {
3
+ "number": "4111111111111111",
4
+ "expiryMonth": "08",
5
+ "expiryYear": "2018",
6
+ "holderName": "Test Person",
7
+ "cvc": "737"
8
+ },
9
+ "amount": {
10
+ "value": 1500,
11
+ "currency": "EUR"
12
+ },
13
+ "billingAddress" : {
14
+ "country" : "US",
15
+ "city" : "Cupertino",
16
+ "street" : "Infinite Loop",
17
+ "houseNumberOrName" : "1",
18
+ "stateOrProvince" : "CA",
19
+ "postalCode" : "95014"
20
+ },
21
+ "channel": "Web",
22
+ "countryCode": "US",
23
+ "returnUrl": "www.example.com",
24
+ "shopperLocale": "en_GB",
25
+ "shopperCountry": "US",
26
+ "reference": "Merchant Reference",
27
+ "merchantAccount": "TestMerchant"
28
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "md":"NQoFyCoAFvXlGTRTZUO/gQApqUw66VhBXLUyO8nKY+Tw8ARE6SiWcbyF1v/0vdiSB2kK3AhKRE60b896iKEw2y0UjWGhiJJvXDOgHF9rkJLE87O5VlIbC512MP+TmZamajCBeGA+rjnHLHI6Toqds+WAa2RzUcxpcFppEygpLWLwnotnOcS412WBuoylNuxBZjtLoq8e1bMui6QwYZuDXBI8eETq9p607FrzDiZu4s9LwzNrewdqsYDrHYap5hOpYGgA9Z++HDtvLtMENqfETAa1qQKFQV5WVoQQFt0kWIyn4HluxS9uxDUfaXwMN1uHv75JXH5XijDxlnkwtxxRZbF/wbAOFVCs8peenxZ4fk/TCiyBZDw3oPzmXC42WYTQPWc44GCcs7pxd97O+W2Hspa3Ic/5jbx6WT3hVePtuap32QX1ijiTZ76ucEvcRYPpSOVJ2X7S0hBJNK71XIVoiQ==",
3
+ "paResponse":"eNpVUdtuwjAM/ZWND2iStqEXmUgZnTQeym3wsKepSi2oRFtI20H39UuAji1PPufYjn0Mm71GTN5RdRoFpNg02Q6finwyisPQ5TSgPvfGEaU8GglYyjWeBHyhboq6EsyhjgtkgKZcq31WtQIydXqZzQVnrucDuSMoUc8SscGmXZalVKeu0KiB3GioshLFVn7K6XM8rQ9Fta7rHMiVBlV3Vat7wd0QyACg0wexb9tjTMj5fHayvMfKUXUJxCpAHgMtOxs1ptOlyMUi2fXzjfTSZMXS7w+eJpItVtK+CRCbAXnWonApCxil3hPjse/GfgTkykNW2hHE63ZtJOpQapa8UXC0P8kbMJqV/lJgnNZYqV5EgV1lQICXY12hyTCO/sZAHoNP36yvqjVecdcay8dBGNHB4qtguxTGGRbS8NrGAiC2lNyPR+5HNtG/4/8A8k2p9Q==",
4
+ "merchantAccount": "TestMerchant",
5
+ "shopperIP": "61.294.12.12"
6
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "originalReference": "8123456789012345"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "originalReference": "8123456789012345"
4
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "originalReference": "8123456789012345",
4
+ "modificationAmount": {
5
+ "value": 2000,
6
+ "currency": "EUR"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "originalReference": "8123456789012345",
4
+ "modificationAmount": {
5
+ "value": 2000,
6
+ "currency": "EUR"
7
+ }
8
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "originalReference": "8123456789012345"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "originalReference": "8123456789012345"
4
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "card": {
3
+ "number": "4111111111111111",
4
+ "expiryMonth": "08",
5
+ "expiryYear": "2018",
6
+ "holderName": "Test Person",
7
+ "cvc": "737"
8
+ },
9
+ "amount": {
10
+ "value": 1500,
11
+ "currency": "EUR"
12
+ },
13
+ "billingAddress" : {
14
+ "country" : "US",
15
+ "city" : "Cupertino",
16
+ "street" : "Infinite Loop",
17
+ "houseNumberOrName" : "1",
18
+ "stateOrProvince" : "CA",
19
+ "postalCode" : "95014"
20
+ },
21
+ "shopperEmail": "shopper@email.com",
22
+ "channel": "Web",
23
+ "countryCode": "US",
24
+ "returnUrl": "www.example.com",
25
+ "shopperLocale": "en_GB",
26
+ "shopperCountry": "US",
27
+ "shopperReference": "crrood",
28
+ "reference": "PM authorise card",
29
+ "merchantAccount": "TestMerchant",
30
+ "recurring": {
31
+ "contract": "PAYOUT"
32
+ }
33
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "card": {
3
+ "number": "4111111111111111",
4
+ "expiryMonth": "08",
5
+ "expiryYear": "2018",
6
+ "holderName": "Test Person",
7
+ "cvc": "737"
8
+ },
9
+ "amount": {
10
+ "value": 1500,
11
+ "currency": "EUR"
12
+ },
13
+ "billingAddress" : {
14
+ "country" : "US",
15
+ "city" : "Cupertino",
16
+ "street" : "Infinite Loop",
17
+ "houseNumberOrName" : "1",
18
+ "stateOrProvince" : "CA",
19
+ "postalCode" : "95014"
20
+ },
21
+ "shopperEmail": "shopper@email.com",
22
+ "channel": "Web",
23
+ "countryCode": "US",
24
+ "returnUrl": "www.example.com",
25
+ "shopperLocale": "en_GB",
26
+ "shopperCountry": "US",
27
+ "shopperReference": "crrood",
28
+ "reference": "PM authorise card",
29
+ "merchantAccount": "TestMerchant",
30
+ "recurring": {
31
+ "contract": "PAYOUT"
32
+ }
33
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "amount": {
3
+ "currency": "EUR",
4
+ "value": "1000"
5
+ },
6
+ "merchantAccount": "TestMerchant",
7
+ "recurring": {
8
+ "contract": "PAYOUT"
9
+ },
10
+ "reference": "PayoutPayment-0001",
11
+ "shopperEmail": "shopper@email.com",
12
+ "shopperReference": "TheShopperReference",
13
+ "shopperName": {
14
+ "firstName": "Adyen",
15
+ "gender": "MALE",
16
+ "lastName": "Test"
17
+ },
18
+ "dateOfBirth": "1990-01-01",
19
+ "entityType": "Company",
20
+ "nationality": "NL",
21
+ "selectedRecurringDetailReference": "LATEST"
22
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "shopperReference": "shopperReference",
4
+ "recurringDetailReference": "8123456789012345"
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "merchantAccount": "TestMerchant",
3
+ "shopperReference": "shopperReference"
4
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "card": {
3
+ "number": "4111111111111111",
4
+ "expiryMonth": "8",
5
+ "expiryYear": "2018",
6
+ "cvc": "737",
7
+ "holderName": "John Smith"
8
+ },
9
+ "reference": "Merchant Reference",
10
+ "merchantAccount": "TestMerchant",
11
+ "shopperReference": "shopperReference",
12
+ "recurring": {
13
+ "contract": "RECURRING"
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "pspReference":"9914913129290137",
3
+ "submittedAsync":"false",
4
+ "status":"Closed"
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "pspReference":"9914713476670992",
3
+ "submittedAsync":"false",
4
+ "accountHolderStatus":{
5
+ "status":"Closed"
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "pspReference":"9914913130220156",
3
+ "submittedAsync":"false",
4
+ "accountHolderCode":"TestAccountHolder5691",
5
+ "accountCode":"195920946",
6
+ "status":"Active"
7
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "pspReference":"9914913131270184",
3
+ "submittedAsync":"false",
4
+ "accountHolderCode":"TestAccountHolder781664",
5
+ "accountCode":"140922935",
6
+ "accountHolderDetails":{
7
+ "address":{
8
+ "city":"Amsterdam",
9
+ "country":"US",
10
+ "houseNumberOrName":"10",
11
+ "postalCode":"12345",
12
+ "stateOrProvince":"NH",
13
+ "street":"Teststreet 1"
14
+ },
15
+ "bankAccountDetails":[
16
+ {
17
+ "BankAccountDetail":{
18
+ "accountNumber":"12345678",
19
+ "bankAccountName":"baName",
20
+ "bankAccountUUID":"681d5df6-cf38-4557-aecd-ac8ed0c04195",
21
+ "bankBicSwift":"BicSUSft",
22
+ "bankCity":"city",
23
+ "bankName":"bankName",
24
+ "branchCode":"122105155",
25
+ "countryCode":"US",
26
+ "currencyCode":"EUR",
27
+ "iban":"iban",
28
+ "ownerCity":"ownerCity",
29
+ "ownerCountryCode":"BE",
30
+ "ownerDateOfBirth":"1980-01-01",
31
+ "ownerHouseNumberOrName":"houseNumberOrName",
32
+ "ownerName":"ownerName",
33
+ "ownerNationality":"AD",
34
+ "ownerPostalCode":"ownerPostalCode",
35
+ "ownerState":"ownerState",
36
+ "ownerStreet":"ownerStreet",
37
+ "primaryAccount":"true",
38
+ "taxId":"bankTaxId"
39
+ }
40
+ }
41
+ ],
42
+ "email":"test@adyen.com",
43
+ "individualDetails":{
44
+ "name":{
45
+ "firstName":"First name",
46
+ "gender":"MALE",
47
+ "lastName":"Last name"
48
+ },
49
+ "personalData":{
50
+ "dateOfBirth":"1970-01-01",
51
+ "idNumber":"1234567890",
52
+ "nationality":"NL"
53
+ }
54
+ },
55
+ "merchantCategoryCode":"7999",
56
+ "phoneNumber":{
57
+ "phoneCountryCode":"NL",
58
+ "phoneNumber":"0612345678",
59
+ "phoneType":"Mobile"
60
+ },
61
+ "webAddress":"http:\/\/www.adyen.com"
62
+ },
63
+ "accountHolderStatus":{
64
+ "status":"Active",
65
+ "processingState":{
66
+ "processedFrom":{
67
+ "currency":"GBP",
68
+ "value":0
69
+ },
70
+ "processedTo":{
71
+ "currency":"GBP",
72
+ "value":9999
73
+ }
74
+ },
75
+ "payoutState":{
76
+ "allowPayout":"true",
77
+ "payoutLimit":{
78
+ "currency":"GBP",
79
+ "value":49999
80
+ }
81
+ }
82
+ },
83
+ "legalEntity":"Individual",
84
+ "verification":{
85
+ "accountHolder":{
86
+ "checks":[
87
+ {
88
+ "type":"PASSPORT_VERIFICATION",
89
+ "status":"AWAITING_DATA",
90
+ "requiredFields":[
91
+ "AccountHolderDetails.Document.passport"
92
+ ]
93
+ },
94
+ {
95
+ "type":"IDENTITY_VERIFICATION",
96
+ "status":"PASSED",
97
+ "summary":{
98
+ "code":1602,
99
+ "description":"Passed"
100
+ }
101
+ }
102
+ ]
103
+ },
104
+ "bankAccounts":[
105
+ {
106
+ "bankAccountUUID":"2f11df0b-a265-47ae-89c0-3d892066e7f5",
107
+ "checks":[
108
+ {
109
+ "type":"BANK_ACCOUNT_VERIFICATION",
110
+ "status":"PASSED"
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ }
116
+ }