anilmuthineni / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

PayPal Issue #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am attempting to change the description of credit card accounts on PayPal.  
For example, substituting "Visa x-1234" with "BOA Visa x-1234" to indicate a 
Bank of America card vs. other Visa cards.

No matter what I do, I have not succeeded. I did a simple test on the 
FoxReplace page, substituting "FoxReplace" with "FoxReplacer", and it worked.  
I set up the PayPal substitution exactly the same way, but it does not work.

I'm not sure if there's something unique about PayPal, but could use some 
advice as to how to get this to work (since it appears PayPal adamantly refuses 
to allow nicknames for accounts to allow differentiation.)

Many Thanks.

Original issue reported on code.google.com by pnmym...@gmail.com on 13 Jun 2015 at 3:08

GoogleCodeExporter commented 9 years ago
Hi, assuming you are referring to the description appearing in the "Summary" 
page, then it doesn't work because the word Visa and the number following it 
are in two different span elements in HTML, like this (simplified): <span>Visa  
</span><span>x-1234</span>. This means that you can't match both "Visa" and the 
number at the same time. The only option would be to use HTML input & output 
and match including the spans (and their attributes, which I have omitted in 
the example before), but it can break JavaScript sometimes.

Original comment by marc.r...@gmail.com on 14 Jun 2015 at 10:07