first commit
This commit is contained in:
7
app/update/__init__.py
Normal file
7
app/update/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# coding=utf-8
|
||||
|
||||
from flask import Blueprint
|
||||
|
||||
update = Blueprint('update', __name__)
|
||||
|
||||
from . import views
|
||||
73
app/update/views.py
Normal file
73
app/update/views.py
Normal file
@@ -0,0 +1,73 @@
|
||||
from flask import jsonify
|
||||
import stripe
|
||||
from app.update import update
|
||||
|
||||
|
||||
|
||||
@update.route('/oil')
|
||||
def update_price_oil():
|
||||
|
||||
update_price_oil = stripe.Price.modify(
|
||||
"price_1MoBy5LkdIwHu7ixZhnattbh",
|
||||
unit_amount=350,
|
||||
)
|
||||
|
||||
return jsonify({-
|
||||
"ok": True,
|
||||
'info': update_price_oil
|
||||
}), 200
|
||||
|
||||
|
||||
@update.route('/prime')
|
||||
def update_price_prime():
|
||||
|
||||
update_price_prime = stripe.Price.modify(
|
||||
"price_1MoBy5LkdIwHu7ixZhnattbh",
|
||||
unit_amount=350,
|
||||
)
|
||||
|
||||
return jsonify({-
|
||||
"ok": True,
|
||||
'info': update_price_prime
|
||||
}), 200
|
||||
|
||||
|
||||
@update.route('/emergency')
|
||||
def update_price_emergency():
|
||||
|
||||
update_price_emergency = stripe.Price.modify(
|
||||
"price_1MoBy5LkdIwHu7ixZhnattbh",
|
||||
unit_amount=350,
|
||||
)
|
||||
|
||||
return jsonify({-
|
||||
"ok": True,
|
||||
'info': update_price_emergency
|
||||
}), 200
|
||||
|
||||
|
||||
@update.route('/sameday')
|
||||
def update_price_sameday():
|
||||
|
||||
update_price_sameday = stripe.Price.modify(
|
||||
"price_1MoBy5LkdIwHu7ixZhnattbh",
|
||||
unit_amount=350,
|
||||
)
|
||||
|
||||
return jsonify({-
|
||||
"ok": True,
|
||||
'info': update_price_sameday
|
||||
}), 200
|
||||
|
||||
|
||||
@update.route('/service')
|
||||
def update_price_service():
|
||||
|
||||
update_price_service = stripe.Price.modify(
|
||||
"price_1MoBy5LkdIwHu7ixZhnattbh",
|
||||
unit_amount=17500,
|
||||
)
|
||||
return jsonify({-
|
||||
"ok": True,
|
||||
'info': update_price_service
|
||||
}), 200
|
||||
Reference in New Issue
Block a user