Update PayPal donation URL

This commit is contained in:
xss 2022-10-05 13:42:26 +11:00
parent 32a95dd95a
commit a16e076cb6
2 changed files with 2 additions and 1 deletions

1
cdn.tf
View File

@ -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
}

View File

@ -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&currency_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/'):