allpay 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/allpay.rb +1 -1
- data/lib/allpay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3a0957cdad73d9724b4d7106ba3f8124e14dd3
|
4
|
+
data.tar.gz: 43b9aeec0c8649e309f7b54ecd36a4a35c90b853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cccf241c5d0c56716d7d57a4cebb83e449906f66a5fcb2068e9a35e67d77e8a78846018f15a06ab7c5c56dad4896d17b33c9af8844f3b61e28e46a7143a3345c
|
7
|
+
data.tar.gz: f2153042784c7a9d194b7152f39b83599a66a93ff4b966e1e015642372823a51065da23112e27b04c3e22907141fef8f9b82e8fcdfb6bb765738197bb4236f96
|
data/lib/allpay.rb
CHANGED
@@ -35,7 +35,7 @@ module Allpay
|
|
35
35
|
'MerchantID' => merchant_id,
|
36
36
|
'MerchantTradeNo' => options[:merchant_trade_no] || SecureRandom.hex(10),
|
37
37
|
'MerchantTradeDate' => options[:merchant_trade_date] || Time.now.strftime('%Y/%m/%d %H:%M:%S'),
|
38
|
-
'TradeAmount' => options[:trade_amount] ||
|
38
|
+
'TradeAmount' => options[:trade_amount] || 0,
|
39
39
|
'ExpireDate' => options[:expire_date] || '7',
|
40
40
|
'BankName' => options[:bank_name] || "CHINATRUST",
|
41
41
|
'ReplyURL' => options[:reply_url] || "",
|
data/lib/allpay/version.rb
CHANGED