mollie: prevent override of description attribute (#43021)

This commit is contained in:
Valentin Deniaud 2020-05-18 16:26:23 +02:00
parent daa57ffa2e
commit 6e96d123ba
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class Payment(PaymentCommon):
'validation': lambda x: x.startswith('test_') or x.startswith('live_'),
},
{
'name': 'description',
'name': 'description_text',
'caption': _('General description that will be displayed for all payments'),
'required': True,
},
@ -76,7 +76,7 @@ class Payment(PaymentCommon):
'redirectUrl': self.normal_return_url,
'webhookUrl': self.automatic_return_url,
'metadata': metadata,
'description': self.description,
'description': self.description_text,
}
resp = self.call_endpoint('POST', 'payments', data=body)