|
|
|
|
@ -38,12 +38,13 @@ def product_payment_to_mixpanel(user_id, event_name, time, properties): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.task |
|
|
|
|
def transaction_to_roistat(user_id, payment_id, event_name, amount, time, status, product_type): |
|
|
|
|
def transaction_to_roistat(user_id, payment_id, event_name, amount, time, status, product_type, roistat_visit): |
|
|
|
|
body = [{ |
|
|
|
|
'id': str(payment_id), |
|
|
|
|
'name': event_name, |
|
|
|
|
'date_create': time, |
|
|
|
|
'status': str(status), |
|
|
|
|
'roistat': str(roistat_visit) if roistat_visit or None, |
|
|
|
|
'price': str(amount), |
|
|
|
|
'client_id': str(user_id), |
|
|
|
|
'fields': { |
|
|
|
|
|