|
@@ -212,20 +212,21 @@ define(function (require) {
|
|
|
window.location.href = 'http://callclient?method=pay¶m=' + encodeURIComponent(param_str) + '&callback=' + _callback;
|
|
|
},
|
|
|
wx: function () {
|
|
|
- // if (config.test) {
|
|
|
- // console.log(params)
|
|
|
- // pingpp.createPayment(params.charge, function (result, err) {
|
|
|
- // if (result) {
|
|
|
- // var res = {
|
|
|
- // success: true
|
|
|
- // };
|
|
|
- // callback(res);
|
|
|
- // }
|
|
|
- // if (err) {
|
|
|
- // console.log(err);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
+ console.log(config.test);
|
|
|
+ if (config.test) {
|
|
|
+ console.log(params)
|
|
|
+ pingpp.createPayment(params.charge, function (result, err) {
|
|
|
+ if (result) {
|
|
|
+ var res = {
|
|
|
+ success: true
|
|
|
+ };
|
|
|
+ callback(res);
|
|
|
+ }
|
|
|
+ if (err) {
|
|
|
+ console.log(err);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
var option = params['charge'].credential.wx_pub;
|
|
|
var prepay = option["package"].replace('prepay_id=', '');
|
|
|
var bookingTime = params.orderInfo.booking_time_str;
|