Skip to content

Commit abb4829

Browse files
committed
update the code of checkout bkash html file
1 parent 97035d5 commit abb4829

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

assets/www/checkout_bkash.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@
5656
.callHandler("paymentData")
5757
.then(function (data) {
5858
//set variable 'paymentConfig' and 'paymentRequest' from this request response from
59-
paymentRequest = data.paymentRequest; //done: data.paymentRequest
60-
paymentConfig = data.paymentConfig; //done: uncomment this after done
61-
accessToken = data.accessToken;
62-
orderNo = data.paymentRequest.ref_no;
59+
paymentRequest = data.paymentRequest; // get data of payment request
60+
paymentConfig = data.paymentConfig; // get data of payment configurations
61+
accessToken = data.accessToken; // get data of access token
62+
orderNo = data.paymentRequest.ref_no; // get the data of order no or references no, need to unique
6363

6464
// print to the console the data coming
6565
// from the Flutter side.
@@ -175,9 +175,9 @@
175175
// take back to previous screen and show pop message to user that 'Payment screen loading failed'
176176
paymentStatus('paymentClose', 'scriptLoadedFailed');
177177
});
178-
});//end event 'requestBkashPayment'
178+
}); //end event 'requestBkashPayment'
179179

180-
// if the data is string the convert to json object otherwise return false
180+
// if the data is string the convert to json object as return true otherwise return false
181181
function isJsonString(str) {
182182
try {
183183
JSON.parse(str);
@@ -187,10 +187,8 @@
187187
return true;
188188
}
189189

190-
}//end event 'flutterInAppWebViewPlatformReady'
190+
} //end event 'flutterInAppWebViewPlatformReady'
191191
);
192-
193-
//$(document).ready(function () {});
194192
</script>
195193
</body>
196194
</html>

0 commit comments

Comments
 (0)