Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $lvlupPost = json_encode([
- 'amount' => $request->tokens,
- 'redirectUrl' => 'https://sklep.xxxxx.tech/platnosc/'.$numer,
- 'webhookUrl' => 'https://sklep.xxxxxx.tech/platnosc/'.$numer.'/notify'
- ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://api.lvlup.pro/v4/wallet/up');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $lvlupPost);
- $headers = array();
- $headers[] = 'Accept: application/json';
- $headers[] = 'Content-Type: application/json';
- $headers[] = 'Authorization: '.env('LVLUP_SECRET_API');
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $result = curl_exec($ch);
- curl_close($ch);
- dd($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement