23 lines
459 B
PHP
23 lines
459 B
PHP
<?php
|
|
|
|
namespace Kontrl\PhpKore;
|
|
|
|
include_once(__DIR__.'/rules.php');
|
|
|
|
class Pix extends Kore
|
|
{
|
|
public function pixCobrancaImediata($payload)
|
|
{
|
|
|
|
return curlRequest(
|
|
'https://httpbin.org/post',
|
|
'POST',
|
|
[],
|
|
[
|
|
'x-kore-drone-uid: drone:' . $this->drone,
|
|
'x-kore-drone-sign: ' . $this->signBody($payload)
|
|
],
|
|
$payload
|
|
);
|
|
}
|
|
}
|