Code Monkey home page Code Monkey logo

kechengcang_server's Introduction

接入文档

签名算法

md5(md5($salt) . md5($secureKey))

创建订单

POST:/api/web/pay-orders/store

请求参数

{
    "title": "标题",
    "fee": 2000,
    "remark":"备注",
    "app_id": "",
    "salt": "随机字符",
    "sign":"签名",
    "currency":1
}

响应参数

{
    "code": 200,
    "message":"ok",
    "result": {
        "id":"YOw3MgLZ7RWGylz4",
        "title":"\u6d4b\u8bd5",
        "remark":"xx",
            //金额 精确到分
        "fee":2000,
            // 金额单位 1 usd
        "currency":1,
            // 付费金额 精确到分
        "pay_fee":11111,
            // 支付币种 5 FTM
        "pay_currency":5,
            // 付款账号
        "pay_account":"",
            // 收款账号
        "receipt_account":"0xE4758EF12D49893581f71e6abdfB1ddA16a043ab",
        // 回调地址 回调时 会post方法传回所有订单数据
            "callback_url":"",
            // 支付完成后跳转页
        "redirect_url":"",
            // 支付状态 1 待支付 2已提交 3支付完成 4超时
        "pay_status":1,
            // 状态 1未完成 2已完成
        "status": 1,
            // 回调状态 1 未完成 2已完成 3超时
        "callback_status":1,
            // 回调时间
        "callback_at":null,
            // 回调次数    
        "callback_times":0,
        // 支付完成时间
        "pay_finish_at":null, 
        "pay_refresh_at":null,
        "pay_submit_at":null,
        "created_at":"",
        "updated_at":"",
        "deleted_at":null,
         // 应用id   
        "app_id":"",
        // 电视展示地址    
        "tv_url": ""
    }
}

查询订单

POST:/api/web/pay-orders/show?id=YOw3MgLZ7RWGylz4

响应参数

{
    "code":200,
    "message":"ok",
    "result": {
        "id":"YOw3MgLZ7RWGylz4",
        "title":"\u6d4b\u8bd5",
        "remark":"xx",
        "fee":2000,
        "currency":1,
        "pay_fee":11111,
        "pay_currency":5,
        "pay_account":"",
        "receipt_account":"0xE4758EF12D49893581f71e6abdfB1ddA16a043ab",
        "callback_url":"",
        "redirect_url":"",
        "pay_status":1,
        "status":1,
        "callback_status":1,
        "callback_at":null,
        "callback_times":0,
        "pay_finish_at":null,
        "pay_refresh_at":null,
        "pay_submit_at":null,
        "created_at":"",
        "updated_at":"",
        "deleted_at":null,
        "app_id":"",
        "tv_url":""
    }
}

kechengcang_server's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.