付款状态最后一页未显示

时间:2019-11-26 06:21:33

标签: json django jinja2 payment

我正在为Web应用程序付款,在交易发生后显示最后一页时遇到问题。我可以重定向到本地页面(交易后),但是我试图在最后一页显示一些响应,例如他/她的姓名,交易状态和交易ID,并已下达命令,但我无法检索views.py"postdict"中的数据(项目列表)。

下面是我的源代码,对于我需要做的事情,我需要一些建议。我尝试了jinja代码等,但无法在最后一页中获取数据。

这是最后一页信息:

transaction: {
    "status": 1, 
    "url": "http://localhost:8000/response/",
    "data": {
        "name_on_card": "NA", 
        "bank_ref_num": "499.0", 
        "udf3": "", 
        "hash":"8a6277714805380124ddd954797e009fb579be9a5900c645ce015ea61c3acd0acae0c22e37357e823b3f272b5eeb2563e1d253f34d57afe516cfa45a52918361",
        "firstname": "sai", 
        "net_amount_debit": "499.0", 
        "payment_source": "Easebuzz", 
        "surl": "http://localhost:8000/response/",
        "error_Message": "PGS10001-Success", 
        "issuing_bank": "NA", 
        "cardCategory": "NA", 
        "phone": "1234567890", 
        "easepayid": "TFJ9DQGI15", 
        "cardnum": "NA", 
        "key": "TOXNUO0ICS", 
        "udf8": "", 
        "unmappedstatus": "NA", 
        "PG_TYPE": "NA", 
        "addedon": "2019-11-26 05:12:59", 
        "cash_back_percentage": "50.0", 
        "status": "success", 
        "udf1": "", 
        "merchant_logo": "NA", 
        "udf6": "", 
        "udf10": "", 
        "txnid": "6b2058x9a", 
        "productinfo": "web integration", 
        "furl": "http://localhost:8000/response/", 
        "card_type": "INR", 
        "amount": "499.0", 
        "udf2": "", 
        "udf5": "",
        "mode": "NA", 
        "udf7": "", 
        "error": "NA", 
        "udf9": "", 
        "bankcode": "NA", 
        "deduction_percentage": "2.00", 
        "email": "sai2@gmail.com", 
        "udf4": ""
     }
} 
name:""""

enter image description here

0 个答案:

没有答案