{% extends "base.html" %} {% load crispy_forms_tags %} {% block title %}Membership Settings — {{ club.name }}{% endblock %} {% block content %} {{ form.media }} {% include "club_ribbon.html" %} {% crispy form %}

Payments

Connect a PayPal or Square account so members can pay dues directly on this site, and so auctions tied to this club can accept payments.

{# ---- PayPal ---- #}

PayPal

{% if club.allow_non_oauth_paypal %} {# Non-OAuth mode: this club uses its own PayPal app credentials instead of OAuth. #} {% if club.uses_own_paypal_credentials %} {% else %} {% endif %}
{% csrf_token %} {% crispy paypal_credentials_form %}
{% else %} {% if uses_site_paypal %} {% endif %} {% if paypal_seller %} {% url 'club_link_payment_account' slug=club.slug as detach_paypal_url %} {% include "auctions/_payment_seller_card.html" with provider_label="PayPal" merchant_id=paypal_seller.paypal_merchant_id seller=paypal_seller disconnect_url=detach_paypal_url disconnect_method="POST" disconnect_form_extra="" warning="Connecting a different PayPal account will replace this one." %}

OAuth account is linked from {{ paypal_seller.user.username }}.

{% elif not paypal_configured %}

PayPal isn't configured on this site.

{% elif user_paypal_seller %}
{% csrf_token %}

Your account {{ user_paypal_seller.payer_email|default:user_paypal_seller.user.username }} will be used for this club's payments. Auctions you've created personally will continue to use the same account.

{% elif request.user.userdata.paypal_enabled %} Connect a PayPal account for this club

You'll be sent to PayPal to authorize, and then back here.

{% endif %} {% endif %}{# /allow_non_oauth_paypal #}
{# ---- Square ---- #}

Square

{% if square_seller %} {% url 'club_link_payment_account' slug=club.slug as detach_square_url %} {% include "auctions/_payment_seller_card.html" with provider_label="Square" merchant_id=square_seller.square_merchant_id seller=square_seller disconnect_url=detach_square_url disconnect_method="POST" disconnect_form_extra="" warning="Connecting a different Square account will replace this one." %}

OAuth account is linked from {{ square_seller.user.username }}.

{% elif not square_configured %}

Square isn't configured on this site.

{% elif user_square_seller %}
{% csrf_token %}

Your account {{ user_square_seller.payer_email|default:user_square_seller.user.username }} will be used for this club's payments.

{% elif request.user.userdata.square_enabled %} Connect a Square account for this club

You'll be sent to Square to authorize, and then back here.

{% endif %}
{% endblock %} {% block extra_js %} {{ block.super }} {% endblock %}