Page 2 of 2

Getting error in __performParameterSubstitutions function in appery.js

Posted: Thu Oct 02, 2014 6:24 pm
by Evgene Karachevtsev

Shawn,

1 Please click js icon http://take.ms/rJ361
2 Please convert 'value' to string adding empty string to the value http://take.ms/Fnd7h


Getting error in __performParameterSubstitutions function in appery.js

Posted: Thu Oct 02, 2014 6:32 pm
by Shawn

ok evgene

thats similar to what I did ... Stripe needs it in hundreds of units so need to multiply it with 100

return ''+Math.floor(value*100);

and that seemed to have worked.

the only side effect I now get is a constantly rotating ajax wait spinner

Maybe its due to my code in payment received where I am calling a set of services without 'try' 'catch' blocks ... and not waiting for them to finish ?

function PaymentReceived()
{
toast("Payment Received. Thank You.") ;

Code: Select all

 localStorage.setItem('pymt_success',true) ;  

 booking_update_service.execute();  

 localStorage.setItem('txn_booker','yes') ;  

create_txn_service.execute() ;
localStorage.setItem('txn_booker','no') ;
create_txn_service.execute() ;
localStorage.setItem('txn_booker','yes') ;

Code: Select all

 pymtbooking_read_service.execute() ;  

}


Getting error in __performParameterSubstitutions function in appery.js

Posted: Thu Oct 02, 2014 6:38 pm
by Evgene Karachevtsev

Shawn,

This is correct and should work. Could you please clarify, is it working for you?


Getting error in __performParameterSubstitutions function in appery.js

Posted: Thu Oct 02, 2014 7:11 pm
by Evgene Karachevtsev

Shawn,

In your method 'transitServices' you show loader
pre$('.ui-loader').show(); /pre
but there isn't place where you turn it off.


Getting error in __performParameterSubstitutions function in appery.js

Posted: Thu Oct 02, 2014 7:37 pm
by Shawn

Awesome Evgene !
Yes I bypassed the degfault Stripe after payment screen and missed this. Thx