def authorize_payment(payment):
    """Activate client's payment authorization page from a PayPal Payment."""
    for link in payment.links:
        if link.rel == "approval_url":
            # Convert to str to avoid Google App Engine Unicode issue
            approval_url = str(link.href)
            return approval_url