diff --git a/make_post_sell/templates/billing.j2 b/make_post_sell/templates/billing.j2 index 41e971d..14b5fcd 100644 --- a/make_post_sell/templates/billing.j2 +++ b/make_post_sell/templates/billing.j2 @@ -38,6 +38,38 @@ +{# PayPal Saved Payment Method Section #} +{% if paypal_enabled and paypal_user_shop %} +
+

PayPal Payment Method

+ + {% if paypal_user_shop.has_saved_payment_method %} +
+
+ + + + + PayPal Account Connected +
+

+ Your PayPal account is saved for quick checkout. Click the PayPal button at checkout to complete your purchase. +

+
+ + +
+
+ {% else %} +

+ No PayPal account connected. Check the "Save PayPal" box during checkout to save your PayPal account for faster future purchases. +

+ {% endif %} +
+{% endif %} +
Review Order   diff --git a/make_post_sell/templates/cart_checkout.j2 b/make_post_sell/templates/cart_checkout.j2 index c82bee9..f9dbae1 100644 --- a/make_post_sell/templates/cart_checkout.j2 +++ b/make_post_sell/templates/cart_checkout.j2 @@ -56,6 +56,150 @@ {% endif %} + {# PayPal checkout button #} + {% if paypal_enabled and request.shop and request.shop.is_paypal_ready and cart.requires_payment %} +
+ + {# Saved PayPal status or save checkbox #} + {% if paypal_user_shop and paypal_user_shop.has_saved_payment_method %} + {# User has PayPal saved #} +
+
+ ✓ + PayPal saved for quick checkout +
+ + Click the PayPal button below to complete your purchase + +
+ {% else %} + {# User does not have PayPal saved - show checkbox #} +
+ + + You can manage saved payment methods in your account settings + +
+ {% endif %} + +
+ + + {% endif %}{# End PayPal enabled check #} + {# For free checkouts (e.g., with coupons), provide a simple confirmation button #} {% if not cart.requires_payment %}