Здравствуйте! Помогите, не пойму в чем проблема:
def createpay(money, about):
payment = Payment.create({
"amount": {
"value": "100.00",
"currency": "RUB"
},
"confirmation": {
"type": "redirect",
"return_url": "https://vk.com/coaldesign"
},
"capture": True,
"description": "Заказ №1"
}, uuid.uuid4())
form = json.loads(payment.json())
answer = {
"id": form['id'],
"status": form['status'],
"url": form['confirmation']['confirmation_url']
}
answer = json.dumps(answer, ensure_ascii=False)
answer = json.loads(answer)
return answer
ОШИБКА: TypeError: __init__() got an unexpected keyword argument 'method_whitelist'