Pass through payment details to redist

This commit is contained in:
Mark Veidemanis 2022-03-09 15:18:54 +00:00
parent 7effd60954
commit 4e9e5ef0fb
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 1 deletions

View File

@ -598,7 +598,9 @@ class Agora(util.Base):
supported_currencies, account_info = self.markets.get_valid_account_details() supported_currencies, account_info = self.markets.get_valid_account_details()
for asset, ad_id, countrycode, currency, provider in our_ads: for asset, ad_id, countrycode, currency, provider in our_ads:
if currency in supported_currencies: if currency in supported_currencies:
rtrn = self.create_ad(asset, countrycode, currency, provider, edit=True, ad_id=ad_id) rtrn = self.create_ad(
asset, countrycode, currency, provider, payment_details=account_info[currency], edit=True, ad_id=ad_id
)
# Bail on first error, let's not continue # Bail on first error, let's not continue
if rtrn is False: if rtrn is False:
return False return False