Created
October 1, 2018 00:29
-
-
Save ricardoreis/618d4dfd97176558351a0df10123f6da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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