product_id
This commit is contained in:
@@ -538,7 +538,9 @@ def myproduct(current_user):
|
|||||||
@app.route("/panel/myproduct/subscription", methods=["POST"])
|
@app.route("/panel/myproduct/subscription", methods=["POST"])
|
||||||
@token_required
|
@token_required
|
||||||
def subscription_start(current_user):
|
def subscription_start(current_user):
|
||||||
product_id = request.args.get('product_id')
|
data = request.json
|
||||||
|
product_id = data.get('product_id')
|
||||||
|
#request.args.get('product_id')
|
||||||
print(product_id)
|
print(product_id)
|
||||||
if not product_id:
|
if not product_id:
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user