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
39
39
40
+
$coin = 'trc20_usdt';
41
+
$my_address = 'TGfBcXvtZKxxku4X8yx92y56HdYTATKuDF'; # Address by default is set in BlockBee Dashboard, yet if you enable the "Address Override" permission when creating the API Key you can set it here.
42
+
$callback_url = 'https://example.com/callback/';
43
+
$parameters = [
44
+
'payment_id' => 12345
45
+
];
46
+
$blockbee_params = [
47
+
'convert' => 1 # You can also add other parameters found in the /create/ documentation https://docs.blockbee.io/#operation/create
48
+
];
49
+
$api_key = '<your-api-key>';
50
+
40
51
$bb = new BlockBee\BlockBee($coin, $my_address, $callback_url, $parameters, $blockbee_params, $api_key);
41
52
42
53
$payment_address = $bb->get_address();
@@ -115,6 +126,17 @@ From here you just need to check if the value matches your order's value.
115
126
116
127
require 'vendor/autoload.php'; // Where your vendor directory is
117
128
129
+
$coin = 'trc20_usdt';
130
+
$my_address = 'TGfBcXvtZKxxku4X8yx92y56HdYTATKuDF'; # Address by default is set in BlockBee Dashboard, yet if you enable the "Address Override" permission when creating the API Key you can set it here.
131
+
$callback_url = 'https://example.com/callback/';
132
+
$parameters = [
133
+
'payment_id' => 12345
134
+
];
135
+
$blockbee_params = [
136
+
'convert' => 1 # You can also add other parameters found in the /create/ documentation https://docs.blockbee.io/#operation/create
137
+
];
138
+
$api_key = '<your-api-key>';
139
+
118
140
$bb = new BlockBee\BlockBee($coin, $my_address, $callback_url, $parameters, $api_key);
119
141
120
142
$data = $bb->check_logs();
@@ -143,14 +165,25 @@ object(stdClass) {
143
165
<?php
144
166
require 'vendor/autoload.php'; // Where your vendor directory is
145
167
168
+
$coin = 'trc20_usdt';
169
+
$my_address = 'TGfBcXvtZKxxku4X8yx92y56HdYTATKuDF'; # Address by default is set in BlockBee Dashboard, yet if you enable the "Address Override" permission when creating the API Key you can set it here.
170
+
$callback_url = 'https://example.com/callback/';
171
+
$parameters = [
172
+
'payment_id' => 12345
173
+
];
174
+
$blockbee_params = [
175
+
'convert' => 1 # You can also add other parameters found in the /create/ documentation https://docs.blockbee.io/#operation/create
176
+
];
177
+
$api_key = '<your-api-key>';
178
+
146
179
$bb = new BlockBee\BlockBee($coin, $my_address, $callback_url, $parameters, $blockbee_params, $api_key);
147
180
148
181
$qrcode = $bb->get_qrcode($value, $size);
149
182
```
150
183
151
184
For object creation, same parameters as before. You must first call `get_address` as this method requires the payment address to have been created.
152
185
153
-
For QR code generation:
186
+
#### Where:
154
187
155
188
``$value`` Value to request the user, in the main coin (BTC, ETH, etc). Optional, pass `false` to not add a value to the QR.
156
189
@@ -678,6 +711,9 @@ Contact us @ https://blockbee.io/contacts/
0 commit comments