add main parameters to pixCobrançaImediata function on Pix
This commit is contained in:
parent
0bcfded7c7
commit
44e9ac4f34
1 changed files with 5 additions and 6 deletions
11
src/Pix.php
11
src/Pix.php
|
@ -2,20 +2,19 @@
|
|||
|
||||
namespace Kontrl\PhpKore;
|
||||
|
||||
include_once(__DIR__.'/rules.php');
|
||||
|
||||
class Pix extends Kore
|
||||
{
|
||||
public function newPixCharge($amount, $pix_key)
|
||||
public function pixCobrancaImediata($payload)
|
||||
{
|
||||
$payload = [
|
||||
'amount' => $amount,
|
||||
'pix_key' => $pix_key
|
||||
];
|
||||
|
||||
return curlRequest(
|
||||
'https://httpbin.org/post',
|
||||
'POST',
|
||||
[],
|
||||
[
|
||||
'x-kore-drone-uid: drone:f8f19d43660d7bbdd2c63d428de6d7b1ff33554311adbe35c784b0584aa007fd',
|
||||
'x-kore-drone-uid: drone:' . $this->drone,
|
||||
'x-kore-drone-sign: ' . $this->signBody($payload)
|
||||
],
|
||||
$payload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue