Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Getting error in __performParameterSubstitutions function in appery.js

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

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Getting error in __performParameterSubstitutions function in appery.js

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() ;  

}

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Getting error in __performParameterSubstitutions function in appery.js

Shawn,

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Getting error in __performParameterSubstitutions function in appery.js

Shawn,

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

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Getting error in __performParameterSubstitutions function in appery.js

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

Return to “Issues”