Skip to content

Instantly share code, notes, and snippets.

View raudinm's full-sized avatar
🏠
Working from home

Raudin Moreno raudinm

🏠
Working from home
View GitHub Profile
@host-anshu
host-anshu / verify_paypal_webhook_signature.py
Last active November 22, 2022 15:56
Verify PayPal Webhook Signature using the REST APIs and the PayPal-Python-SDK
"""
This snippet could be used to verify PayPal webhooks
PayPal docs isn't very clear about API verification mechanism. And am afraid neither
is the SDK.
BASIC CONCEPT: Your webhook_event in the body of verification request be in the same
order you have received from PayPal or else your verification fails.
EXTRA TIP IF USING DRF: Don't use request.DATA as it mutates the order of the request
@rohitrawat
rohitrawat / sources.list
Created June 12, 2017 18:17
Ubuntu 16.04 Xenial default /etc/apt/sources.list
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted