From a16e076cb61aaf94f3b937dead4cd56dc7a44548 Mon Sep 17 00:00:00 2001 From: xss Date: Wed, 5 Oct 2022 13:42:26 +1100 Subject: [PATCH] Update PayPal donation URL --- cdn.tf | 1 + lambda/redirect/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cdn.tf b/cdn.tf index 0749111..5df456c 100644 --- a/cdn.tf +++ b/cdn.tf @@ -11,6 +11,7 @@ resource "aws_lambda_function" "redirect" { role = aws_iam_role.basic_lambda_role.arn runtime = "python3.9" timeout = 3 + source_code_hash = data.archive_file.lambda.output_base64sha256 } diff --git a/lambda/redirect/__init__.py b/lambda/redirect/__init__.py index fdfca7e..e18aa59 100644 --- a/lambda/redirect/__init__.py +++ b/lambda/redirect/__init__.py @@ -21,7 +21,7 @@ def handler(event, context): site = uri.replace("/site/", "") return redirect('https://sondehub.org/#!site=' + site) if uri.startswith('/go/donate'): - return redirect('https://www.paypal.com/donate?business=YK2WHT6RNSYH8&item_name=SondeHub+Database+funding¤cy_code=USD') + return redirect('https://www.paypal.com/donate/?hosted_button_id=4V7L43MD5CQ52') if uri.startswith('/go/status'): return redirect("https://cloudwatch.amazonaws.com/dashboard.html?dashboard=SondeHub&context=eyJSIjoidXMtZWFzdC0xIiwiRCI6ImN3LWRiLTE0Mzg0MTk0MTc3MyIsIlUiOiJ1cy1lYXN0LTFfZ2NlT3hwUnp0IiwiQyI6IjNuOWV0Y2ZxZm9zdm11aTc0NTYwMWFzajVzIiwiSSI6InVzLWVhc3QtMTo0ODI5YmQ4MC0yZmYzLTQ0MDktYjI1ZS0yOTE4MTM5YTgwM2MiLCJNIjoiUHVibGljIn0%3D") if uri.startswith('/go/'):