$newarr[‘title’] = $title;

$newarr[‘description’] = $msg;

$newNotification = $this->notificationTbl->newEntity();

$query = $this->notificationTbl->patchEntity($newNotification, $newarr);

$this->notificationTbl->save($query);


Pusher.logToConsole = true;

var pusher = new Pusher(‘6c1bbddbc4c29dfe0aa0’, {

cluster: ‘ap2’,

forceTLS: true

});

var my_id=”{{ Auth::id() }}”;

var channel = pusher.subscribe(‘notification-channel’);

channel.bind(‘notification-event’, function (data) {

if (my_id == data.to) {

var pending = parseInt($(‘#main_’ + data.to).find(‘.badge’).html());

if (pending) {

$(‘#main_’ + data.to).find(‘.badge’).html(pending + 1);

} else {

$(‘#main_’+ data.to+’ i’).append(‘<span class=”badge”>1</span>’);

}

}

});


curl https://svcs.sandbox.paypal.com/Permissions/RequestPermissions \
-s \
— insecure \
-H “X-PAYPAL-SECURITY-USERID:sb-19yya3765723_api1.business.example.com” \
-H “X-PAYPAL-SECURITY-PASSWORD:S99EC7Z6C2CPFR3L” \
-H “X-PAYPAL-SECURITY-SIGNATURE:AbQ-zlF-r4myrkLI0FscnoW5AQiSAp78NtFhYUT09Ai5XnrqJHFWdNKr” \
-H “X-PAYPAL-REQUEST-DATA-FORMAT: NV” \
-H “X-PAYPAL-RESPONSE-DATA-FORMAT: JSON” \
-H “X-PAYPAL-APPLICATION-ID:APP-80W284485P519543T” \
-d requestEnvelope.errorLanguage=en_US \
-d scope=REFUND \
-d callback=https://example.com/return

curl https://svcs.sandbox.paypal.com/Permissions/GetAccessToken \
-s \
— insecure \
-H “X-PAYPAL-SECURITY-USERID:sb-19yya3765723_api1.business.example.com” \
-H “X-PAYPAL-SECURITY-PASSWORD:S99EC7Z6C2CPFR3L” \
-H “X-PAYPAL-SECURITY-SIGNATURE:AbQ-zlF-r4myrkLI0FscnoW5AQiSAp78NtFhYUT09Ai5XnrqJHFWdNKr” \
-H “X-PAYPAL-REQUEST-DATA-FORMAT: NV” \
-H “X-PAYPAL-RESPONSE-DATA-FORMAT: JSON” \
-H “X-PAYPAL-APPLICATION-ID:APP-80W284485P519543T” \
-d requestEnvelope.errorLanguage=en_US \
-d token=TF20AAGAXTZopCGDVz305uhYD7cFmGLsnBvTxrPruyWy6oDM6mK6ZvyZx4gK \
-d verifier=TF20AAEiwuO7G%2FB9VfOaEN3MSVVEBihTwVM2Vh5tBdsGAf9apj7e9I8%3D


  1. Node js is a combination of v8 crome javascript engine and c++ program.
  2. step to install node js

first download node js software on your computer.

you dont need to install NPM sepratley it also comes with node js setup.

after install node js make sure node js properly installed on your computer using “node -v” command

if version of node js is showing then everything is ok. Now move further

3. if you want to do code using node js it will be difficult for you. so install Express Framework for this.

put this command in cmd to your…

Manishjangir

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store