

def get_hidden_fields(self, payment):
    if (not payment.description):
        raise ValueError('Payment description is required')
    data = {
        'id': self.seller_id,
        'amount': Decimal(str(payment.total)).quantize(CENTS),
        'control': str(payment.id),
        'currency': payment.currency,
        'description': payment.description,
        'lang': self.lang,
        'channel': str(self.channel),
        'ch_lock': ('1' if self.lock else '0'),
        'URL': payment.get_success_url(),
        'URLC': payment.get_return_url(payment),
        'type': '1',
    }
    return data

dataset/ETHPy150Open mirumee/django-payments/payments/dotpay/__init__.py DotpayProvider.get_hidden_fields/VarMisuse@123/169 `self`->`payment`