globalpayments / globalpayments-js

JavaScript library for web applications to connect to Heartland eCommerce & Global Payments eCommerce tokenization services
14 stars 23 forks source link

function inside frames : SetValue, SetText not working. #59

Closed khoa-nguyendang closed 2 years ago

khoa-nguyendang commented 2 years ago

image As you see in above, there is no affect to current screen, the data still appear.

Meanwhile I'm able to list down all function of frames. image

Please give me sum advices to not reload entire of screen, I want to reload data only. Thanks

slogsdon commented 2 years ago

@khoa-nguyendang You can call the dispose method on your cardForm object (example) to remove the fields so that they can be recreated. You may also call the setValue method on each field to send an empty value, but this won't perform a full reset that disposing of the form would do.

khoa-nguyendang commented 2 years ago

Thank @slogsdon , I will give a try.

khoa-nguyendang commented 2 years ago

confirmed

cardForm.dispose();

will be remove existing form fields, and force re-render again. Closed ticket