country onChange option (client)

hey there!


I'm currently integrating a payment page, and I want to use the country and state fields for displaying the price (VAT etc.).

I know that I can get the country and state fields from the callback page, but the issue is that I want to display a change in price whenever a user selects a different country inside the iframe.


I've tried every solution I found, but with no success and I know this might be problemtic and have security issues, but I wonder if there's a way to get a sort of onChange on this kind of event.


thanks in advance!


Tags (2)

Re: country onChange option (client)

We had the same goals during implementation, but we were limited by the issues that you are facing.  We came up with a solution that works, but we are not happy with the flow and user experience.


We eneded up capturing the Country / State Province outside of the HPM, then pass its values in the HPM on a hidden field.  Whenever Country / State Province change, we reload the page and HPM.


See attached screen shot. HPM is outlined in red.


Re: country onChange option (client)

It looks like the attachement didnt work.  Here you go:

Screen Shot 2020-01-23 at 9.30.00 AM.png