Giter Site home page Giter Site logo

ecpayaio_python's People

Contributors

adelachang0418 avatar allennchang avatar thanatosdi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecpayaio_python's Issues

請問可以增加 License 嗎

我想把這個 repo fork 出去, 並改成我想要的版本
但是因為沒有 License 所以我不敢這樣做
如果方便的話可以加上 License 檔嗎
不方便的話也煩請告知

感謝

`ReturnURL` 沒有被觸發

建立訂單的程式碼如下:

sdk = self.get_sdk()
order_params = {
    'MerchantTradeNo': trade.number,
    # 'StoreID': '',
    'MerchantTradeDate': datetime.utcnow().strftime('%Y/%m/%d %H:%M:%S'),
    # 'PaymentType': 'aio',
    'TotalAmount': int(amount),
    'TradeDesc': description,
    'ItemName': item_name,
    'ReturnURL': f'{HOST}/payment/ecpay/callback',
    'ChoosePayment': 'Credit',
    # 'ClientBackURL': PAYMENT_REDIRECT_URL,
    # 'ItemURL': 'https://www.ecpay.com.tw/item_url.php',
    # 'Remark': '交易備註',
    # 'ChooseSubPayment': '',
    # 'OrderResultURL': PAYMENT_REDIRECT_URL,
    'OrderResultURL': f'{HOST}/payment/ecpay/order-result/callback',
    'NeedExtraPaidInfo': 'Y',
    # 'DeviceSource': '',
    # 'IgnorePayment': '',
    # 'PlatformID': '',
    # 'InvoiceMark': 'N',
    # 'EncryptType': 1,
}
order = sdk.create_order(order_params)

ReturnURLOrderResultURL 使用同一個 HOST
Local 開發使用 ngrok,兩個 callback 都可以被觸發,一切正常
Production 環境使用自己的 Domain,只有 OrderResultURL 有被觸發,ReturnURL 完全沒收到 Request
更奇怪的是,ECPay 理論上要拿到 ReturnURL 的 response 才能知道 user 付款成功或失敗,但是 ECPay 連 Request 都沒打出來,user 卻還能付款成功?

目前已知 local 和 production 的差別在於
local 用 ngrok 開出來的 host name 不含 port number,例如 http://myapp.ngrok.io
production 使用的自訂 host name 含有 port number,例如 https://myapp.example.com:8888

本次交易未提供任何付款方式,請與商店聯繫確認。

本次交易未提供任何付款方式,請與商店聯繫確認。

為啥本來可以收款的交易連結,現在通通顯示

本次交易未提供任何付款方式,請與商店聯繫確認。

不論是我串接你們家的 api,還是收款連結,通通失效

你們不是說 8/1 才會開始修改方案嗎?

7/1~7/31 都可以補件,現在是?????

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.