Answer the question
In order to leave comments, you need to log in
How to invoice qiwi checkout in python using their API?
Hello! I'm trying to issue an invoice to QIWI according to this documentation: https://developer.qiwi.com/en/bill-payments/#create
My code:
headers={'Accept': 'application/json',
'Authorization': 'Bearer SECRET_KEY',
}
params={'billId': 'не знаю, что тут',
'amount.value': 100.00,
'amount.currency': 'RUB',
}
requests.get(URL,
params=params,
headers=headers)
Answer the question
In order to leave comments, you need to log in
Either I'm a fool, or the skis don't go
headers={'Authorization': 'Bearer SECRET_KEY',
'Accept': 'application/json',
'Content-Type': 'application/json',
}
params={'amount': {'value': 59.21,
'currency': 'RUB',
},
'comment': 'Text comment',
'expirationDateTime': '2020-04-13T14:30:00+03:00',
'customer': {},
'customFields': {},
}
params = json.dumps(params)
g = requests.put('https://api.qiwi.com/partner/bill/v1/bills/<уникальный номер счета>',
headers=headers,
data=params,
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question