File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 56
56
. callHandler ( "paymentData" )
57
57
. then ( function ( data ) {
58
58
//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
63
63
64
64
// print to the console the data coming
65
65
// from the Flutter side.
175
175
// take back to previous screen and show pop message to user that 'Payment screen loading failed'
176
176
paymentStatus ( 'paymentClose' , 'scriptLoadedFailed' ) ;
177
177
} ) ;
178
- } ) ; //end event 'requestBkashPayment'
178
+ } ) ; //end event 'requestBkashPayment'
179
179
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
181
181
function isJsonString ( str ) {
182
182
try {
183
183
JSON . parse ( str ) ;
187
187
return true ;
188
188
}
189
189
190
- } //end event 'flutterInAppWebViewPlatformReady'
190
+ } //end event 'flutterInAppWebViewPlatformReady'
191
191
) ;
192
-
193
- //$(document).ready(function () {});
194
192
</ script >
195
193
</ body >
196
194
</ html >
You can’t perform that action at this time.
0 commit comments