def cus(): content = get_file('cus.html') import bp_lib res = bp_lib.bpCreateInvoice(123456, .0001, 'Order description',{'apiKey':'NxLDZG94wp42naChTzLmSBmDOBg6kE1NQ3yL2srANA'}) url = res['url'] return render_template("cus.html", url=url)
def buy_hampster(): bp_lib.bpOptions['api_key'] = os.getenv('BITPAY') data = json.loads(request.data) response = bp_lib.bpCreateInvoice('1', '0.0001', '123123', options=data) return jsonify({'key': response})