File tree Expand file tree Collapse file tree
pay-java-union/src/main/java/com/egzosn/pay/union/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,11 +242,24 @@ public Map<String, Object> orderInfo(PayOrder order) {
242242 } else {
243243 params .put (SDKConstants .param_payTimeout , DateUtils .formatDate (new Timestamp (System .currentTimeMillis () + 30 * 60 * 1000 ), DateUtils .YYYYMMDDHHMMSS ));
244244 }
245+
245246 params .put (SDKConstants .param_frontUrl , payConfigStorage .getReturnUrl ());
246247 break ;
247248 case CONSUME :
248249 params .put (SDKConstants .param_txnAmt , Util .conversionCentAmount (order .getPrice ()));
249250 params .put (SDKConstants .param_qrNo , order .getAuthCode ());
251+ break ;
252+ case APPLY_QR_CODE :
253+ if (null != order .getPrice ()){
254+ params .put (SDKConstants .param_txnAmt , Util .conversionCentAmount (order .getPrice ()));
255+ }
256+
257+ if (null != order .getExpirationTime ()) {
258+ params .put (SDKConstants .param_payTimeout , DateUtils .formatDate (order .getExpirationTime (), DateUtils .YYYYMMDDHHMMSS ));
259+ } else {
260+ params .put (SDKConstants .param_payTimeout , DateUtils .formatDate (new Timestamp (System .currentTimeMillis () + 30 * 60 * 1000 ), DateUtils .YYYYMMDDHHMMSS ));
261+ }
262+
250263 break ;
251264 default :
252265 }
You can’t perform that action at this time.
0 commit comments