This file contains 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
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) { |