Add on_behalf_of in payment micro-service
This commit is contained in:
parent
90bafec58c
commit
a7a1263c73
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
.venv/
|
.venv/
|
||||||
|
/venv_t/
|
||||||
*__pycache__*
|
*__pycache__*
|
||||||
.vscode
|
.vscode
|
||||||
/deploy/.*
|
/deploy/.*
|
||||||
|
|||||||
@ -255,11 +255,13 @@ class StripeManager:
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
payment_intent_data={
|
payment_intent_data={
|
||||||
|
"on_behalf_of": transaction.to_stripe_account_id,
|
||||||
"application_fee_amount": transaction.application_fee_amount,
|
"application_fee_amount": transaction.application_fee_amount,
|
||||||
"transfer_data": {
|
"transfer_data": {
|
||||||
"destination": transaction.to_stripe_account_id,
|
"destination": transaction.to_stripe_account_id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on_behalf_of=transaction.to_stripe_account_id,
|
||||||
mode="payment",
|
mode="payment",
|
||||||
success_url="{}/work-space".format(
|
success_url="{}/work-space".format(
|
||||||
self.site_url_root
|
self.site_url_root
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user