Skip to content

Instantly share code, notes, and snippets.

@ricardoreis
Created October 1, 2018 00:29
Show Gist options
  • Save ricardoreis/618d4dfd97176558351a0df10123f6da to your computer and use it in GitHub Desktop.
Save ricardoreis/618d4dfd97176558351a0df10123f6da to your computer and use it in GitHub Desktop.
<?php
echo 'oi';
require __DIR__ . '/vendor/autoload.php';
$options = array(
'cluster' => 'us2',
'useTLS' => true
);
$pusher = new Pusher\Pusher(
'18d514638e535062bd73',
'625eb4b95d5aa0d53c0b',
'610995',
$options
);
$data['message'] = 'BTCPAY say: Hey Raspberry, a payment was received. Please, deliver Coca to the customer!';
$pusher->trigger('my-channel', 'my-event', $data);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment