Task #9611: Add support for writing DNS entries matrix.ungleich.cloud and matrix.0co2.cloud
This commit is contained in:
parent
5bb0c4cdda
commit
7986b825a7
31 changed files with 626 additions and 478 deletions
|
|
@ -0,0 +1,20 @@
|
|||
import json
|
||||
from uncloud_pay.models import Product, Order, ProductToRecurringPeriod
|
||||
|
||||
|
||||
def finalize_order(request, customer, billing_address,
|
||||
one_time_price, pricing_plan,
|
||||
specs):
|
||||
product = Product.objects.first()
|
||||
recurring_period_product = ProductToRecurringPeriod.objects.filter(product=product, is_default=True).first()
|
||||
order = Order.objects.create(
|
||||
owner=request.user,
|
||||
customer=customer,
|
||||
billing_address=billing_address,
|
||||
one_time_price=one_time_price,
|
||||
pricing_plan=pricing_plan,
|
||||
recurring_period= recurring_period_product.recurring_period,
|
||||
product = product,
|
||||
config=json.dumps(specs)
|
||||
)
|
||||
return order
|
||||
Loading…
Add table
Add a link
Reference in a new issue