README.md in suning_pay-0.2.1 vs README.md in suning_pay-0.2.2
- old
+ new
@@ -22,9 +22,42 @@
Add init file (suning_pay.rb) to Rails config/initializers
rake suning_pay:init:create
+configuration
+
+```ruby
+##################TEST##################
+#接口地址-委托代收
+SuningPay.api_base_url = 'https://ebanksandbox.suning.com/epps-ebpg/api/contract/'
+SuningPay.api_query_base_url = 'https://paymentsandbox.suning.com/epps-pag/apiGateway/merchantOrder/'
+#接口地址-批量付款
+SuningPay.api_tranfer_url = 'https://wagtestpre.suning.com/epps-twg/'
+SuningPay.api_card_tranfer_url ='https://wagtestpre.suning.com/epps-wag/'
+#客户号
+SuningPay.merchant_no = '70057278'
+#Suning证书存放路径
+SuningPay.api_suning_cert = '/Users/terry/Documents/RUBY/hex/yifubao-pre.cer'
+#客户端RSA 公钥,1024, pem文件路径
+SuningPay.api_client_public_key = '/Users/terry/Documents/RUBY/hex/rsa_public_key.pem'
+#客户端RSA 私钥,1024, pem文件路径
+SuningPay.api_client_private_key = '/Users/terry/Documents/RUBY/hex/rsa_private_key.pem'
+
+##################PROD##################
+#SuningPay.api_base_url = 'https://ebankpay.suning.com/epps-ebpg/api/contract/'
+#SuningPay.api_query_base_url = 'https://payment.suning.com/epps-pag/apiGateway/merchantOrder/'
+#SuningPay.api_tranfer_url = 'https://tag.yifubao.com/epps-twg/'
+#SuningPay.api_card_tranfer_url ='https://wag.yifubao.com/epps-wag/'
+
+#SuningPay.merchant_no = ''
+#SuningPay.api_suning_cert = ''
+#SuningPay.api_client_public_key = ''
+#SuningPay.api_client_private_key = ''
+
+#SuningPay.debug_mode = false
+```
+
## API-委托代收
1. 签约请求_发送短信接口
2. 签约请求_验证短信接口
3. 签约请求接口(易付宝不发短信)