Skip to content

Commit b446182

Browse files
committed
v2.0.1
* Minor bugfixes
1 parent 2ffe569 commit b446182

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

BlockBee/BlockBee.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public static function list_payouts ($coin, $status, $page, $api_key, $requests
229229
}
230230

231231
if ($page) {
232-
$params['page'] = $page;
232+
$params['p'] = $page;
233233
}
234234

235235
$endpoint = 'payout/list';

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ composer require blockbee/php-blockbee
3737
<?php
3838
require 'vendor/autoload.php'; // Where your vendor directory is
3939

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+
4051
$bb = new BlockBee\BlockBee($coin, $my_address, $callback_url, $parameters, $blockbee_params, $api_key);
4152

4253
$payment_address = $bb->get_address();
@@ -115,6 +126,17 @@ From here you just need to check if the value matches your order's value.
115126

116127
require 'vendor/autoload.php'; // Where your vendor directory is
117128

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+
118140
$bb = new BlockBee\BlockBee($coin, $my_address, $callback_url, $parameters, $api_key);
119141

120142
$data = $bb->check_logs();
@@ -143,14 +165,25 @@ object(stdClass) {
143165
<?php
144166
require 'vendor/autoload.php'; // Where your vendor directory is
145167

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+
146179
$bb = new BlockBee\BlockBee($coin, $my_address, $callback_url, $parameters, $blockbee_params, $api_key);
147180

148181
$qrcode = $bb->get_qrcode($value, $size);
149182
```
150183

151184
For object creation, same parameters as before. You must first call `get_address` as this method requires the payment address to have been created.
152185

153-
For QR code generation:
186+
#### Where:
154187

155188
``$value`` Value to request the user, in the main coin (BTC, ETH, etc). Optional, pass `false` to not add a value to the QR.
156189

@@ -678,6 +711,9 @@ Contact us @ https://blockbee.io/contacts/
678711
* Support to BlockBee Checkout page
679712
* Various improvements
680713

714+
#### 2.0.1
715+
* Minor bugfixes
716+
681717
### Breaking Changes
682718

683719
#### 2.0.0

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
"BlockBee\\": "BlockBee/"
3030
}
3131
},
32-
"version": "2.0.0"
32+
"version": "2.0.1"
3333
}

0 commit comments

Comments
 (0)