Skip to content

Instantly share code, notes, and snippets.

View morkhorwaad's full-sized avatar

Mark Harwood morkhorwaad

View GitHub Profile
@morkhorwaad
morkhorwaad / http-functions.js
Last active June 24, 2019 21:33
Wix IPN Listener
import {created, serverError, ok} from 'wix-http-functions';
import { fetch } from 'wix-fetch';
import wixCrm from 'wix-crm-backend';
import { parse } from 'querystring';
// HTTP POST - IPN Handler
// Listens for PayPayl's payment notifications and hands off the data to be verified before processing
// Right now, processing == sending a thank you email to the person who paid
export async function post_IPNHandler(request) {