def up_front(sid, package, fname): jamlaApp = Jamla() jamla = jamlaApp.load(src=app.config['JAMLA_PATH']) selling_points = jamlaApp.get_selling_points(package) upfront_cost = jamlaApp.sku_get_upfront_cost(package) monthly_cost = jamlaApp.sku_get_monthly_price(package) stripe_pub_key = jamla['payment_providers']['stripe']['publishable_key'] session['upfront_cost'] = upfront_cost session['monthly_cost'] = monthly_cost return render_template('up_front_payment.html', jamla=jamla, package=package, fname=fname, selling_points=selling_points, upfront_cost=upfront_cost, monthly_cost=monthly_cost, sid=sid, stripe_pub_key=stripe_pub_key)
def up_front(sid, package, fname): jamla = get_jamla() jamlaApp = Jamla() jamlaApp.load(jamla=jamla) selling_points = jamlaApp.get_selling_points(package) upfront_cost = jamlaApp.sku_get_upfront_cost(package) monthly_cost = jamlaApp.sku_get_monthly_price(package) stripe_pub_key = jamla["payment_providers"]["stripe"]["publishable_key"] session["upfront_cost"] = upfront_cost session["monthly_cost"] = monthly_cost return render_template("up_front_payment.html", jamla=jamla, package=package, fname=fname, selling_points=selling_points, upfront_cost=upfront_cost, monthly_cost=monthly_cost, sid=sid, stripe_pub_key=stripe_pub_key, pages=jamla['pages'])