Getting error in __performParameterSubstitutions function in appery.js

This forum contains topics that were moved from Get Satisfaction
Jignesh
Posts: 0
Joined: Wed Sep 17, 2014 11:08 am

Getting error in __performParameterSubstitutions function in appery.js

Post by Jignesh »

Hello,

appery.js gives error in __performParameterSubstitutions when parameter value is integer. because it uses "value.replace()" function which is not supported for integer value.
Please find attached screenshot for more clarity.

Can you please provide a solution ? It has stopped the payment functionality in my app.

Please do needful.

Thanks
Jignesh Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Getting error in __performParameterSubstitutions function in appery.js

Post by Kateryna Grynko »

Hi Jignesh,

If I understand you correctly, you map a field for sending request, right? If yes, you could try converting values to string before substitution to parameter, as replace is called for all Query String parameters.

Jignesh
Posts: 0
Joined: Wed Sep 17, 2014 11:08 am

Getting error in __performParameterSubstitutions function in appery.js

Post by Jignesh »

I have tried to convert to string but did not get success. It automatically being converted to integer. I think appery should allow integer value also in this functionality.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Getting error in __performParameterSubstitutions function in appery.js

Post by Kateryna Grynko »

Hi Jignesh,

Could you please share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and post steps to reproduce?

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

Getting error in __performParameterSubstitutions function in appery.js

Post by Shawn »

Hi Kateryna

Just to add more clarity to this issue.
This error started coming up after platform upgrade.
Before that our Stripe Payment page was working fine.
The value being set into the Stripe payment screen is coming from Local Storage.
Jignesh will share the App with you'll on Email.

Rgds
Shawn

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Getting error in __performParameterSubstitutions function in appery.js

Post by Kateryna Grynko »

Hi Shawn,

Thank you, Jignesh sent everything. We'll check.

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

Getting error in __performParameterSubstitutions function in appery.js

Post by Evgene Karachevtsev »

Hello,

When you map 'amount' value for the service request query (paymentDS, Before send event) you should convert it to string, this will fix your problem.

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

Getting error in __performParameterSubstitutions function in appery.js

Post by Shawn »

hi evgene what function can I use to convert it to string ?
or if you can send a screenshot that would be great.

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

Getting error in __performParameterSubstitutions function in appery.js

Post by Shawn »

hi evgene ok I got it. I just added this and it seems to be working

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

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

Getting error in __performParameterSubstitutions function in appery.js

Post by Shawn »

should I add something like this when mapping amount ?

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

Post Reply