@@ -78,7 +78,7 @@ result:
78
78
#### getCurrencies
79
79
80
80
Description:
81
- + Returns the list of enabled currencies as a flat array with the associated AID rate value.
81
+ + Returns the list of enabled currencies as a flat array with the associated DAI rate value.
82
82
83
83
``` php
84
84
$aidPay->getCurrencies();
@@ -88,120 +88,120 @@ result:
88
88
89
89
``` json
90
90
[
91
+ {
92
+ "name" : " Aidcoin" ,
93
+ "code" : " AID" ,
94
+ "daiRate" : " 0.0459845847"
95
+ },
91
96
{
92
97
"name" : " Attention Token" ,
93
98
"code" : " BAT" ,
94
- "aid_rate " : " 2.4326873385 "
99
+ "daiRate " : " 0.1553115365 "
95
100
},
96
101
{
97
102
"name" : " Blackcoin" ,
98
103
"code" : " BC" ,
99
- "aid_rate " : " 1.2065245478 "
104
+ "daiRate " : " 0.0639980109 "
100
105
},
101
106
{
102
107
"name" : " Bitcoin" ,
103
108
"code" : " BTC" ,
104
- "aid_rate" : " 61369.5090439273"
105
- },
106
- {
107
- "name" : " Dai Stablecoin" ,
108
- "code" : " DAI" ,
109
- "aid_rate" : " 7.444121447"
109
+ "daiRate" : " 6153.6548980605"
110
110
},
111
111
{
112
112
"name" : " Dash" ,
113
113
"code" : " DASH" ,
114
- "aid_rate " : " 1842.9453811369 "
114
+ "daiRate " : " 159.9950888861 "
115
115
},
116
116
{
117
117
"name" : " Decred" ,
118
118
"code" : " DCR" ,
119
- "aid_rate" : " 487.2174418604"
120
- },
121
- {
122
- "name" : " Digixdao" ,
123
- "code" : " DGD" ,
124
- "aid_rate" : " 707.5329457364"
119
+ "daiRate" : " 37.8817317255"
125
120
},
126
121
{
127
122
"name" : " Dogecoin" ,
128
123
"code" : " DOGE" ,
129
- "aid_rate" : " 0.0257751937"
124
+ "daiRate" : " 0.0049602187"
125
+ },
126
+ {
127
+ "name" : " Enjincoin" ,
128
+ "code" : " ENJ" ,
129
+ "daiRate" : " 0.0461524117"
130
130
},
131
131
{
132
132
"name" : " Essentia" ,
133
133
"code" : " ESS" ,
134
- "aid_rate " : " 0.0552325581 "
134
+ "daiRate " : " 0.0021755345 "
135
135
},
136
136
{
137
137
"name" : " Ethereum" ,
138
138
"code" : " ETH" ,
139
- "aid_rate" : " 3557.2835917926"
140
- },
141
- {
142
- "name" : " Flyp.me Token" ,
143
- "code" : " FYP" ,
144
- "aid_rate" : " 0.7364341085"
139
+ "daiRate" : " 196.2888531824"
145
140
},
146
141
{
147
142
"name" : " Gamecredits" ,
148
143
"code" : " GAME" ,
149
- "aid_rate " : " 3.5385658914 "
144
+ "daiRate " : " 0.1615949776 "
150
145
},
151
146
{
152
147
"name" : " Gridcoin" ,
153
148
"code" : " GRC" ,
154
- "aid_rate " : " 0.2424095607 "
149
+ "daiRate " : " 0.0106458229 "
155
150
},
156
151
{
157
152
"name" : " Groestlcoin" ,
158
153
"code" : " GRS" ,
159
- "aid_rate " : " 5.5158914728 "
154
+ "daiRate " : " 0.5194300099 "
160
155
},
161
156
{
162
157
"name" : " Litecoin" ,
163
158
"code" : " LTC" ,
164
- "aid_rate " : " 647.1420865633 "
159
+ "daiRate " : " 50.6322725012 "
165
160
},
166
161
{
167
162
"name" : " Pivx" ,
168
163
"code" : " PIVX" ,
169
- "aid_rate" : " 14.5648255813"
164
+ "daiRate" : " 1.1255034808"
165
+ },
166
+ {
167
+ "name" : " Power Ledger" ,
168
+ "code" : " POWR" ,
169
+ "daiRate" : " 0.1737176777"
170
170
},
171
171
{
172
172
"name" : " Peercoin" ,
173
173
"code" : " PPC" ,
174
- "aid_rate " : " 8.5309754521 "
174
+ "daiRate " : " 0.8839109895 "
175
175
},
176
176
{
177
177
"name" : " Augur" ,
178
178
"code" : " REP" ,
179
- "aid_rate " : " 226.276744186 "
179
+ "daiRate " : " 11.7099129786 "
180
180
},
181
181
{
182
182
"name" : " Syscoin" ,
183
183
"code" : " SYS" ,
184
- "aid_rate " : " 1.2415051679 "
184
+ "daiRate " : " 0.0851665837 "
185
185
},
186
186
{
187
187
"name" : " BLOCKv" ,
188
188
"code" : " VEE" ,
189
- "aid_rate " : " 0.1528100775 "
189
+ "daiRate " : " 0.0089843361 "
190
190
},
191
191
{
192
192
"name" : " Vertcoin" ,
193
193
"code" : " VTC" ,
194
- "aid_rate " : " 10.0830103359 "
194
+ "daiRate " : " 0.6460106911 "
195
195
},
196
196
{
197
197
"name" : " Zcash" ,
198
198
"code" : " ZEC" ,
199
- "aid_rate " : " 1669.2506459948 "
199
+ "daiRate " : " 110.0055656389 "
200
200
},
201
201
{
202
202
"name" : " 0x" ,
203
203
"code" : " ZRX" ,
204
- "aid_rate " : " 8.4763565891 "
204
+ "daiRate " : " 0.6442757334 "
205
205
}
206
206
]
207
207
```
@@ -210,7 +210,7 @@ result:
210
210
#### getLimits
211
211
212
212
Description:
213
- + Returns the min and max amounts of tokens to be exchanged both in AID and in selected currency.
213
+ + Returns the min and max amounts of tokens to be exchanged both in DAI and in selected currency.
214
214
215
215
Params:
216
216
+ fromCurrency: the currency from which to start the transaction
@@ -223,25 +223,25 @@ result:
223
223
224
224
``` json
225
225
{
226
- "AID " : {
227
- "min" : " 9.0 " ,
228
- "max" : " 26519.21353053 "
226
+ "DAI " : {
227
+ "min" : " 4.5 " ,
228
+ "max" : " 6299.05278899 "
229
229
},
230
230
"BTC" : {
231
- "min" : " 0.000138789473684 " ,
232
- "max" : " 0.408954187602 "
231
+ "min" : " 0.000731227272727 " ,
232
+ "max" : " 1.02356426481 "
233
233
},
234
234
"USD" : {
235
- "min" : " 0.672345 " ,
236
- "max" : " 1867.625 "
235
+ "min" : " 0.226368 " ,
236
+ "max" : " 316.867551497 "
237
237
},
238
238
"EUR" : {
239
- "min" : " 0.575163 " ,
240
- "max" : " 1597.675 "
239
+ "min" : " 0.1956285 " ,
240
+ "max" : " 273.838721896 "
241
241
},
242
242
"GBP" : {
243
- "min" : " 0.531 " ,
244
- "max" : " 1475 "
243
+ "min" : " 0.17145 " ,
244
+ "max" : " 239.993911261 "
245
245
}
246
246
}
247
247
```
@@ -285,16 +285,16 @@ result:
285
285
286
286
"depositAddress" : " 1HfL94JWjmmjroyAHTDhRQqUwZ7PR4JoUZ" ,
287
287
"destination" : " 0x4Aa0f67D9A0666b9Dd0Ee6d397334903AE337e1E" ,
288
- "exchangeRate" : " 64625.850340136300000000 " ,
288
+ "exchangeRate" : " 6138.0122760247 " ,
289
289
"fromCurrency" : " BTC" ,
290
- "toCurrency" : " AID " ,
291
- "invoicedAmount" : " 0.100000000000000000 " ,
292
- "orderedAmount" : " 6459.585034010000000000 " ,
290
+ "toCurrency" : " DAI " ,
291
+ "invoicedAmount" : " 0.1 " ,
292
+ "orderedAmount" : " 612.3012276 " ,
293
293
"hash" : null ,
294
294
"refundAddress" : " 1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG" ,
295
- "createdAt" : " 2018-07-26T14:44:28 +02:00" ,
296
- "expireDate" : " 2018-07-26T15:04:26 +02:00" ,
297
- "chargedFee" : " 3.000000000000000000 " ,
295
+ "createdAt" : " 2018-10-11T11:56:57 +02:00" ,
296
+ "expireDate" : " 2018-10-11T12:16:56 +02:00" ,
297
+ "chargedFee" : " 1.5 " ,
298
298
"orderLink" : " https://www.aidchain.co/aidpay/payment/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee?return=https%3A//your.client/return/url"
299
299
}
300
300
```
@@ -324,7 +324,7 @@ Params:
324
324
$aidPay->createOrder(
325
325
'O-12345',
326
326
'BTC',
327
- 'EUR ',
327
+ 'USD ',
328
328
'1000',
329
329
330
330
'1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG',
@@ -342,16 +342,16 @@ result:
342
342
343
343
"depositAddress" : " 1HfL94JWjmmjroyAHTDhRQqUwZ7PR4JoUZ" ,
344
344
"destination" : " 0x4Aa0f67D9A0666b9Dd0Ee6d397334903AE337e1E" ,
345
- "exchangeRate" : " 90090.090090090000000000 " ,
345
+ "exchangeRate" : " 6197.5710529613 " ,
346
346
"fromCurrency" : " BTC" ,
347
- "toCurrency" : " AID " ,
348
- "invoicedAmount" : " 0.1737232 " ,
349
- "orderedAmount" : " 15647.73811945 " ,
347
+ "toCurrency" : " DAI " ,
348
+ "invoicedAmount" : " 0.163838 " ,
349
+ "orderedAmount" : " 1000.3971577 " ,
350
350
"hash" : null ,
351
351
"refundAddress" : " 1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG" ,
352
- "createdAt" : " 2018-09-05T10:40:46 +02:00" ,
353
- "expireDate" : " 2018-09-05T11:00:44 +02:00" ,
354
- "chargedFee" : " 3.000000000000000000 " ,
352
+ "createdAt" : " 2018-10-11T11:56:57 +02:00" ,
353
+ "expireDate" : " 2018-10-11T12:16:56 +02:00" ,
354
+ "chargedFee" : " 1.5 " ,
355
355
"orderLink" : " https://www.aidchain.co/aidpay/payment/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee?return=https%3A//your.client/return/url"
356
356
}
357
357
```
@@ -387,14 +387,14 @@ result:
387
387
"destination" : " 0x4Aa0f67D9A0666b9Dd0Ee6d397334903AE337e1E" ,
388
388
"exchangeRate" : " 64625.850340136300000000" ,
389
389
"fromCurrency" : " BTC" ,
390
- "toCurrency" : " AID " ,
391
- "invoicedAmount" : " 0.100000000000000000 " ,
392
- "orderedAmount" : " 6459.585034010000000000 " ,
390
+ "toCurrency" : " DAI " ,
391
+ "invoicedAmount" : " 0.1 " ,
392
+ "orderedAmount" : " 616.97941526 " ,
393
393
"hash" : null ,
394
394
"refundAddress" : " 1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG" ,
395
- "createdAt" : " 2018-07-26T14:44:28 +02:00" ,
396
- "expireDate" : " 2018-07-26T15:04:26 +02:00" ,
397
- "chargedFee" : " 3.000000000000000000 "
395
+ "createdAt" : " 2018-10-11T11:56:57 +02:00" ,
396
+ "expireDate" : " 2018-10-11T12:16:56 +02:00" ,
397
+ "chargedFee" : " 1.5 "
398
398
}
399
399
```
400
400
@@ -425,16 +425,16 @@ result:
425
425
426
426
"depositAddress" : " 1HfL94JWjmmjroyAHTDhRQqUwZ7PR4JoUZ" ,
427
427
"destination" : " 0x4Aa0f67D9A0666b9Dd0Ee6d397334903AE337e1E" ,
428
- "exchangeRate" : " 64625.850340136300000000 " ,
428
+ "exchangeRate" : " 6138.0122760247 " ,
429
429
"fromCurrency" : " BTC" ,
430
- "toCurrency" : " AID " ,
431
- "invoicedAmount" : " 0.100000000000000000 " ,
432
- "orderedAmount" : " 6459.585034010000000000 " ,
430
+ "toCurrency" : " DAI " ,
431
+ "invoicedAmount" : " 0.1 " ,
432
+ "orderedAmount" : " 612.3012276 " ,
433
433
"hash" : null ,
434
434
"refundAddress" : " 1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG" ,
435
- "createdAt" : " 2018-07-26T14:44:28 +02:00" ,
436
- "expireDate" : " 2018-07-26T15:04:26 +02:00" ,
437
- "chargedFee" : " 3.000000000000000000 "
435
+ "createdAt" : " 2018-10-11T11:56:57 +02:00" ,
436
+ "expireDate" : " 2018-10-11T12:16:56 +02:00" ,
437
+ "chargedFee" : " 1.5 "
438
438
},
439
439
{
440
440
"uuid" : " aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" ,
@@ -443,16 +443,16 @@ result:
443
443
444
444
"depositAddress" : " 1HfL94JWjmmjroyAHTDhRQqUwZ7PR4JoUZ" ,
445
445
"destination" : " 0x4Aa0f67D9A0666b9Dd0Ee6d397334903AE337e1E" ,
446
- "exchangeRate" : " 64625.850340136300000000 " ,
446
+ "exchangeRate" : " 6138.0122760247 " ,
447
447
"fromCurrency" : " BTC" ,
448
- "toCurrency" : " AID " ,
449
- "invoicedAmount" : " 0.100000000000000000 " ,
450
- "orderedAmount" : " 6459.585034010000000000 " ,
448
+ "toCurrency" : " DAI " ,
449
+ "invoicedAmount" : " 0.1 " ,
450
+ "orderedAmount" : " 612.3012276 " ,
451
451
"hash" : null ,
452
452
"refundAddress" : " 1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG" ,
453
- "createdAt" : " 2018-07-26T14:44:28 +02:00" ,
454
- "expireDate" : " 2018-07-26T15:04:26 +02:00" ,
455
- "chargedFee" : " 3.000000000000000000 "
453
+ "createdAt" : " 2018-10-11T11:56:57 +02:00" ,
454
+ "expireDate" : " 2018-10-11T12:16:56 +02:00" ,
455
+ "chargedFee" : " 1.5 "
456
456
}
457
457
],
458
458
"count" : 23 ,
@@ -488,16 +488,16 @@ result:
488
488
489
489
"depositAddress" : " 1HfL94JWjmmjroyAHTDhRQqUwZ7PR4JoUZ" ,
490
490
"destination" : " 0x4Aa0f67D9A0666b9Dd0Ee6d397334903AE337e1E" ,
491
- "exchangeRate" : " 64625.850340136300000000 " ,
491
+ "exchangeRate" : " 6138.0122760247 " ,
492
492
"fromCurrency" : " BTC" ,
493
- "toCurrency" : " AID " ,
494
- "invoicedAmount" : " 0.100000000000000000 " ,
495
- "orderedAmount" : " 6459.585034010000000000 " ,
493
+ "toCurrency" : " DAI " ,
494
+ "invoicedAmount" : " 0.1 " ,
495
+ "orderedAmount" : " 612.3012276 " ,
496
496
"hash" : null ,
497
497
"refundAddress" : " 1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG" ,
498
- "createdAt" : " 2018-07-26T14:44:28 +02:00" ,
499
- "expireDate" : " 2018-07-26T15:04:26 +02:00" ,
500
- "chargedFee" : " 3.000000000000000000 "
498
+ "createdAt" : " 2018-10-11T11:56:57 +02:00" ,
499
+ "expireDate" : " 2018-10-11T12:16:56 +02:00" ,
500
+ "chargedFee" : " 1.5 "
501
501
}
502
502
```
503
503
@@ -522,16 +522,16 @@ curl -X POST \
522
522
523
523
"depositAddress": "1HfL94JWjmmjroyAHTDhRQqUwZ7PR4JoUZ",
524
524
"destination": "0x4Aa0f67D9A0666b9Dd0Ee6d397334903AE337e1E",
525
- "exchangeRate": "64625.850340136300000000 ",
525
+ "exchangeRate": "6138.0122760247 ",
526
526
"fromCurrency": "BTC",
527
- "toCurrency": "AID ",
528
- "invoicedAmount": "0.100000000000000000 ",
529
- "orderedAmount": "6459.585034010000000000 ",
527
+ "toCurrency": "DAI ",
528
+ "invoicedAmount": "0.1 ",
529
+ "orderedAmount": "612.3012276 ",
530
530
"hash": "0xc28b0..........ac11",
531
531
"refundAddress": "1Nv92z71iinNVPncrDm4RPHyo17S9bEVPG",
532
- "createdAt": "2018-07-26T14:44:28 +02:00",
533
- "expireDate": "2018-07-26T15:04:26 +02:00",
534
- "chargedFee": "3.000000000000000000 "
532
+ "createdAt": "2018-10-11T11:56:57 +02:00",
533
+ "expireDate": "2018-10-11T12:16:56 +02:00",
534
+ "chargedFee": "1.5 "
535
535
}'
536
536
```
537
537
0 commit comments