wechat_payment 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/wechat_payment/payment_order.rb +3 -3
- data/lib/wechat_payment/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e310951e27fb21bc10f6f7c014d311dbef25b86229fb13c7f509e2670173185d
|
|
4
|
+
data.tar.gz: f8385506631a6d621ad60a81cf3a7eca42bdfb27f811765e3b2c850fb97cde0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e7ad1adc3f4e8cc1b720cc8cc78986320e76638ae66518657c0bf844dd21facc1e3bd83c65a1421b491780e2ccc2a33d19935a1279623da64bbce69c70f21cf
|
|
7
|
+
data.tar.gz: b97d318c5628de5eeeb183f9a1dbb4dc37ba0a210534f302ba1c9e1c2e7950ed7208c1e2db9b91d12cbb4f12d60e6ffe4f573fc123a8fcb8469bd06bb69fa64a
|
|
@@ -72,8 +72,8 @@ module WechatPayment
|
|
|
72
72
|
# "paySign": "1F5CBC345B86E5DD055F235A22961422",
|
|
73
73
|
# "orderId": 17
|
|
74
74
|
# }
|
|
75
|
-
def pay
|
|
76
|
-
if payment_params.present?
|
|
75
|
+
def pay(repay: false)
|
|
76
|
+
if payment_params.present? && !repay
|
|
77
77
|
return ServiceResult.new(success: true, data: payment_params, message: "获取支付参数成功")
|
|
78
78
|
end
|
|
79
79
|
|
|
@@ -93,7 +93,7 @@ module WechatPayment
|
|
|
93
93
|
def repay
|
|
94
94
|
gen_out_trade_no
|
|
95
95
|
save
|
|
96
|
-
pay
|
|
96
|
+
pay(repay: true)
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# 发起退款
|