order.trade_type = "JSAPI";
var _this = this;
this.createUnifiedOrder(order, function(err, data){
//TODO: check data['return_code'] and data['return_msg'] response here, otherwise client will get a callback data with like {..., nonceStr: undefined, package: "prepay_id=undefined"... } without any further debug infomation.
WXPay.mix('getBrandWCPayRequestParams', function(order, fn){
//TODO: check data['return_code'] and data['return_msg'] response here, otherwise client will get a callback data with like {..., nonceStr: undefined, package: "prepay_id=undefined"... } without any further debug infomation.
});