I am trying to set up a notification from on a payment. Here is my code: def PayPal_IPN(): print("REQUESt: ", request) print("REQUESt INFO: ",request.data) '''This module processes PayPal Instant Payment Notification messages (IPNs).''' # Switch as appropriate VERIFY_URL_PROD = 'https://ipnpb.paypal.com/cgi-bin/webscr' VERIFY_URL = VERIFY_URL_PROD # Read and parse query string params = request.form.to_dict() # Add '_notify-validate' parameter params['cmd'] = '_notify-valudate' # Post back to PayPal for validation headers = {'content-type': 'application/x-www-form-urlencoded', 'user-agent': 'Python-IPN-Verification-Script'} r = requests.post(VERIFY_URL, params=params, headers=headers, verify=True) r.raise_for_status() # Check return message and take action as needed if r.text == 'VERIFIED': print("SUCCESSFULL") elif r.text == 'INVALID': print("FAILURE") else: print("NOTHING HAPPENED?") return "" Here is my error message: requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://ipnpb.paypal.com/cgi-bin/webscr.... Can someone help me figure out what I am not understanding? maybe the link has changed?
... View more