'Used only for setting up credit card payments for gilding.'

@validate(VUser(), passthrough=nop('passthrough'))
def GET_creditgild(self, passthrough):

    try:
        payment_blob = validate_blob(passthrough)
    except GoldException:
        self.abort404()
    if (c.user != payment_blob['buyer']):
        self.abort404()
    if (not (payment_blob['goldtype'] == 'gift')):
        self.abort404()
    recipient = payment_blob['recipient']
    thing = payment_blob.get('thing')
    if (not thing):
        thing = payment_blob['comment']
    if ((not thing) or thing._deleted or (not thing.subreddit_slow.can_view(c.user))):
        self.abort404()
    if isinstance(thing, Comment):
        summary = strings.gold_summary_gilding_page_comment
    else:
        summary = strings.gold_summary_gilding_page_link
    summary = (summary % {'recipient': recipient.name})
    months = 1
    price = (g.gold_month_price * months)
    if isinstance(thing, Comment):
        desc = thing.body
    else:
        desc = thing.markdown_link_slow()
    content = CreditGild(summary=summary, price=price, months=months, stripe_key=g.secrets['stripe_public_key'], passthrough=passthrough, description=desc, period=None)
    return BoringPage(_('reddit    gold'), show_sidebar=False, content=content, page_classes=['gold-page-ga-tracking']).render()
