You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require 'vendor/autoload.php'; // Where your vendor directory is
32
32
33
-
$ca = new CryptAPI\CryptAPI($coin, $my_address, $callback_url, $parameters, $pending);
33
+
$ca = new CryptAPI\CryptAPI($coin, $my_address, $callback_url, $parameters, $cryptapi_params);
34
34
$payment_address = $ca->get_address();
35
35
```
36
36
37
37
Where:
38
38
39
-
``$coin`` is the coin you wish to use, can be one of: ``['btc', 'eth', 'bch', 'ltc', 'iota', 'xmr']``
39
+
``$coin`` is the coin you wish to use, from CryptAPI's supported currencies (e.g `'btc', 'eth', 'erc20_usdt', ...`)
40
40
41
41
``$my_address`` is your own crypto address, where your funds will be sent to
42
42
43
43
``$callback_url`` is the URL that will be called upon payment
44
44
45
-
``$parameters`` is any parameter you wish to send to identify the payment, such as ``['order_id' => 1234]``
45
+
``$parameters`` is any parameter you wish to send to identify the payment, such as `['order_id' => 1234]`
46
46
47
-
``$pending``if you want to be notified of pending transactions.
47
+
``$cryptapi_params``parameters that will be passed to CryptAPI _(check which extra parameters are available here: https://cryptapi.io/docs/#/Bitcoin/btccreate)_
48
48
49
49
``$payment_address`` is the newly generated address, that you will show your users
50
50
@@ -58,15 +58,9 @@ The URL you provided earlier will be called when a user pays, for easier process
58
58
59
59
require 'vendor/autoload.php'; // Where your vendor directory is
0 commit comments