73 lines
1.4 KiB
Python
73 lines
1.4 KiB
Python
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 |