diff --git a/src/Pix.php b/src/Pix.php index e9c49f0..0e688a4 100644 --- a/src/Pix.php +++ b/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