Removed dollar sign from 'amount'

waterdoggy
Contributor
Contributor

A Perl subroutine formatting values with a dollar sign apparently caused my Paypal 'button' to redirect to the old user interface, which won't work after 29 March 2017.

Making a new subroutine, which makes values without dollar signs,  was easier than using an extra argument in the old subroutine, so my Paypal 'button' now seems to redirect to the new user interface.

I couldn't remember, yesterday, how to remove the dollar sign with a regular expression, but this morning, I tested just a couple of lines of Perl that seemed to remove the dollar sign, which could have been a cleaner way of making the 'amount' value, with no dollar sign.

So, couldn't Paypal have just used a regular expression to remove the dollar signs, that seemed to be causing the problem?

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.