laysi / go-ecpay-sdk Goto Github PK
View Code? Open in Web Editor NEW綠界科技 SDK
License: MIT License
綠界科技 SDK
License: MIT License
There still some urls not implement into client's configure here.
QueryPaymentInfo the openapi client cannot recognized the content-type from ecapay server,since it is html/text insteadof application/json,I need to overwrite the template to fix the problem.
I plan to add a custom field to use as fall back while the content-type is wrong.
like x-fallback-content
Originally posted by @LaysDragon in https://github.com/Laysi/go-ecpay-sdk/issue_comments/710275745
There is still some API Request and Return Data need to implement.
5.產生訂單
8.查詢訂單
9.查詢信用卡單筆明細記錄
10.查詢 ATM/CVS/BARCODE 取號結果
11.信用卡請退款功能
13.信用卡定期定額訂單查詢
7.付款結果通知 - 應用場景Ⅰ
7.付款結果通知 - 應用場景Ⅱ
6.ATM、CVS 或 BARCODE 的取號結果通知
12.額外回傳的參數
Source: https://goreportcard.com/report/github.com/Laysi/go-ecpay-sdk report have a lot of lint problem related to #2
QueryTradeInfo have a application/x-www-form-urlencoded
response content-type,but openapi generator didn't support that auto binding. I want to implement a logic to register global custom decoder to deal with that.
Originally posted by @LaysDragon in https://github.com/Laysi/go-ecpay-sdk/issue_comments/709208152
now the docs is still broken and need more info .
now gin have problem to deal with custom format time form application/x-www-form-urlencoded
.
That curse the problem to binding with gin's implementation for current version, even a pull request have already sent. but it still need a better way to deal with this for older version even the new version come out with fix.
Checkout the detail here gin-gonic/gin#2510
It would better to use regex to replace and quoted the certain time string in the data instead of decode and encode complete.
Lines 23 to 44 in 364f024
检测到 Laysi/go-ecpay-sdk 一共引入了100个开源组件,存在2个漏洞
漏洞标题:jwt-go 安全漏洞
缺陷组件:github.com/dgrijalva/[email protected]+incompatible
漏洞编号:CVE-2020-26160
漏洞描述:jwt-go是个人开发者的一个Go语言的JWT实现。
jwt-go 4.0.0-preview1之前版本存在安全漏洞。攻击者可利用该漏洞在使用[]string{} for m[\"aud\"](规范允许)的情况下绕过预期的访问限制。
影响范围:(∞, 4.0.0-preview1)
最小修复版本:4.0.0-preview1
缺陷组件引入路径:github.com/Laysi/go-ecpay-sdk@->github.com/dgrijalva/[email protected]+incompatible
另外还有2个漏洞,详细报告:https://mofeisec.com/jr?p=a86d6b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.