From f95bf7a1029653a82d5ec2ee75d6fc24d257b91d Mon Sep 17 00:00:00 2001
From: VK <370725567@qq.com>
Date: Thu, 22 Aug 2024 19:48:01 +0800
Subject: [PATCH] =?UTF-8?q?uni-pay=E6=96=B0=E5=A2=9E=E8=8B=B9=E6=9E=9C?=
=?UTF-8?q?=E8=99=9A=E6=8B=9F=E6=94=AF=E4=BB=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 11 +-
.../request-payment-uni-pay.uvue | 21 +-
.../virtual-payment-uni-pay.uvue | 191 ++++++++++
.../uni-pay/appleiap/apiclient_cert.p8 | 3 +
.../uni-config-center/uni-pay/config.js | 11 +-
.../uni-pay-popup/uni-pay-popup.uvue | 9 +-
.../uni-pay-x/components/uni-pay/uni-pay.uvue | 271 ++++++++++++--
.../cloudfunctions/common/uni-pay/index.js | 4 +-
.../cloudfunctions/uni-pay-co/common/error.js | 4 +
.../cloudfunctions/uni-pay-co/index.obj.js | 31 +-
.../cloudfunctions/uni-pay-co/lang/en.js | 1 +
.../cloudfunctions/uni-pay-co/lang/zh-hans.js | 5 +-
.../cloudfunctions/uni-pay-co/libs/crypto.js | 13 +
.../cloudfunctions/uni-pay-co/libs/index.js | 4 +-
.../uni-pay-co/libs/jsonwebtoken.js | 1 +
.../cloudfunctions/uni-pay-co/package.json | 4 +-
.../cloudfunctions/uni-pay-co/service/pay.js | 341 ++++++++++++++----
17 files changed, 802 insertions(+), 123 deletions(-)
create mode 100644 pages/API/virtual-payment/virtual-payment-uni-pay.uvue
create mode 100644 uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-pay/appleiap/apiclient_cert.p8
create mode 100644 uni_modules/uni-pay-x/uniCloud/cloudfunctions/uni-pay-co/libs/jsonwebtoken.js
diff --git a/pages.json b/pages.json
index e4d0b22d..d9297741 100644
--- a/pages.json
+++ b/pages.json
@@ -1018,6 +1018,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/API/virtual-payment/virtual-payment-uni-pay",
+ "style": {
+ "navigationBarTitleText": "苹果虚拟支付(uni-pay)",
+ "enablePullDownRefresh": false
+ }
+ },
// #endif
{
"path": "pages/API/request-payment/request-payment/order-detail",
@@ -1744,14 +1751,14 @@
{
"path": "uni_modules/uni-pay-x/pages/ad-interactive-webview/ad-interactive-webview",
"style": {
- "navigationBarTitleText": "收银台",
+ "navigationBarTitleText": "ad",
"backgroundColor": "#F8F8F8"
}
},
{
"path": "uni_modules/uni-pay-x/pages/pay-desk/pay-desk",
"style": {
- "navigationBarTitleText": "ad",
+ "navigationBarTitleText": "收银台",
"backgroundColor": "#F8F8F8"
}
},
diff --git a/pages/API/request-payment/request-payment/request-payment-uni-pay.uvue b/pages/API/request-payment/request-payment/request-payment-uni-pay.uvue
index ec469a0f..467f57c7 100644
--- a/pages/API/request-payment/request-payment/request-payment-uni-pay.uvue
+++ b/pages/API/request-payment/request-payment/request-payment-uni-pay.uvue
@@ -27,9 +27,12 @@
-
+
+
+
+
-
+