如何在ebs付款方式中创建令牌

时间:2018-06-25 12:10:44

标签: python python-3.x

如何在ebs付款方式中创建令牌。我使用下面的代码,但抛出错误。

data = {
    'card[number]': '12',
    'card[exp_month]': str(values['12/30'][:2]),
    'card[exp_year]': str(values['12/30'][-2:]),
    'card[cvc]': '123',
    'card[name]': 'cc_holder_name',
}
url = https://secure.ebs.in/v1/5880/tokens
import requests
requests.post(url, data)

错误

<Response [404]>
>>> requests.post(url, data).text
'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL /v1/5880/tokens was not found on this server.</p>\n</body></html>\n'

0 个答案:

没有答案
相关问题