Coder Social home page Coder Social logo

Comments (4)

kaine380 avatar kaine380 commented on June 2, 2024
//hupiPay 单独处理,使用微信二维码
if data.PayWay == "hupi" { // 虎皮椒支付
	params := payment.HuPiPayReq{
		Version:      "1.1",
		TradeOrderId: orderNo,
		TotalFee:     fmt.Sprintf("%f", order.Amount),
		Title:        order.Subject,
		NotifyURL:    h.App.Config.HuPiPayConfig.NotifyURL,
		WapName:      "ChatAI",
	}
	r, err := h.huPiPayService.Pay(params)
	if err != nil {
		resp.ERROR(c, "error with generating payment qrcode: ")
		return
	} else {
		resp.SUCCESS(c, gin.H{"order_no": order.OrderNo, "image": r.UrlQrcode})
		fmt.Println(r.UrlQrcode)
		return
	}
}
写在payjs单独处理下面

from chatgpt-plus.

yangjian102621 avatar yangjian102621 commented on June 2, 2024

这个是故意设计成这样的。统一的交互体验,而且扫码需要有反馈扫码成功,官方提供的二维码没有这功能。

from chatgpt-plus.

kaine380 avatar kaine380 commented on June 2, 2024

这个是故意设计成这样的。统一的交互体验,而且扫码需要有反馈扫码成功,官方提供的二维码没有这功能。

除了没有扫描成功的提示,其他还行,可以提示支付成功,我这边的运营商屏蔽了虎皮椒的域名,开wifi扫不了码,这样直接扫支付码成功率高一点

from chatgpt-plus.

yangjian102621 avatar yangjian102621 commented on June 2, 2024

这个是故意设计成这样的。统一的交互体验,而且扫码需要有反馈扫码成功,官方提供的二维码没有这功能。

除了没有扫描成功的提示,其他还行,可以提示支付成功,我这边的运营商屏蔽了虎皮椒的域名,开wifi扫不了码,这样直接扫支付码成功率高一点

你直接扫码也是需要打开虎皮椒的域名的,应该没法避免的。

from chatgpt-plus.

Related Issues (20)

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.