[FIX] adyen_platforms: Sync KYC status on update
The response we get after updating data contains the new KYC status, we then update it on the adyen account so that we don't have to wait for the cron. X-original-commit: 59fdb24527e6073cb3c4de5662d25d4d0cea08eb
This commit is contained in:
@@ -313,7 +313,11 @@ class AdyenAccount(models.Model):
|
||||
else:
|
||||
raise UserError(_("We had troubles reaching Adyen, please retry later or contact the support if the problem persists"))
|
||||
|
||||
return response.get('result')
|
||||
result = response.get('result')
|
||||
if 'verification' in result:
|
||||
self._update_kyc_status(result['verification'])
|
||||
|
||||
return result
|
||||
|
||||
@api.model
|
||||
def _sync_adyen_cron(self):
|
||||
|
||||
Reference in New Issue
Block a user