Back to Reddit

${_('reddit gold')}

r2/r2/templates/goldpayment.html

latest3.7 KB
Original Source

${_('reddit gold')}

%if thing.clone_template: ${_('close')} %endif

${_('In Summation')}

${md(thing.summary)} ${_md('> By purchasing Reddit Gold, you agree to the Reddit User Agreement.')} %if thing.thing and not thing.clone_template: ${md(thing.description, wrap=True)} %endif %if thing.giftmessage:

${_('The following gift note will be attached:')}

${md(thing.giftmessage, wrap=True)} %endif

%if thing.clone_template:

  • ${_('make my gift anonymous')}
  • ${_('include a message')}
  • ${thing.giftmessage}

%endif

${_("Please select a payment method.")}

%if thing.can_use_creddits: ${self.creddits_button()} %endif: %if thing.paypal_buttonid: ${self.paypal_button()} %endif %if thing.coinbase_button_id: ${self.coinbase_button()} %endif %if thing.stripe_key: ${self.stripe_button()} %endif %if thing.stripe_key and not thing.clone_template: ${self.stripe_form()} %endif %if thing.clone_template: %if not thing.user_creddits: ${_md("Give gold often? Consider buying creddits to use, they're 40% cheaper if purchased in a set of 12.")} %endif ${_md("Would you like to learn more about giving gold?")} %endif

<%def name="creddits_button()"> ${_("creddits")} %def> <%def name="paypal_button()"> %if thing.quantity: %endif ${_("PayPal")}%def> <%def name="stripe_button()"> ${_('Credit Card')} %def> <%def name="base_stripe_form()">

powered by stripe ${_('Stripe is PCI compliant and your credit card information is sent directly to them.')}

| ${_('name')} | | | ${_('card number')} | | | ${_('cvc')} | | | ${_('expiration date')} | <% import datetime months = ['%02d' % m for m in xrange(1, 13)] years = ['%04d' % y for y in xrange(datetime.datetime.now().year, datetime.datetime.now().year + 25)] %> %for m in months: ${m} %endfor %for y in years: ${y} %endfor | | ${_('address line 1')} | | | ${_('address line 2')} | | | ${_('city')} | | | ${_('state/province')} | | | ${_('country')} | | | ${_('zip')} | |

${_('Submit')} %def> <%def name="stripe_form(display=False)"> ${base_stripe_form()} %def> <%def name="coinbase_button()"> ${_('Bitcoin')}%def> % if not thing.clone_template: % endif