X
X
Xaip2017-11-13 17:51:31
Python
Xaip, 2017-11-13 17:51:31

Autocomplete payment forms with qiwi api?

Unable to add extra field with comment and account parameters - https://developer.qiwi.com/en/qiwi-wallet-personal...

import requests
import json


api_access_token = '540c21d7e6e3c5597c6b4a32061e428b'
my_login = '+79064566350'

s = requests.Session()
s.headers['authorization'] = 'Bearer' + api_access_token
parameters = {'amountInteger':'99',
              'amountFraction':'99',
              'currency':'643',
              'extra':{
                  'comment':'wgegwegwgwe'
              }

              }
h = s.get('https://qiwi.com/payment/form/99?', params = parameters)
print(h.url)

The code gives this link - https://qiwi.com/payment/form/99?extra=comment&amo... Without autocomplete of the comment form and account number

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
Xaip, 2017-11-13
@Xaip

I found the answer, it was only necessary to escape the quotes:

'extra[\'comment\']':'fwqfqwfqwfq',
              'extra[\'account\']':'Test Message',

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question