hps / heartland-tokenization

SecureSubmit Tokenization Library
GNU General Public License v2.0
2 stars 2 forks source link

React to window.postMessage deprecation in Chrome #29

Open slogsdon opened 8 years ago

slogsdon commented 8 years ago

I saw this recently when using a script with window.postMessage calls:

window.postMessage(message, transferables, targetOrigin) is deprecated and will be removed in M54, around October 2016. Please use window.postMessage(message, targetOrigin, transferables) instead. See https://www.chromestatus.com/features/5719033043222528 for more details.

The preferred function signature will need to be tested across our supported browsers.

syaiful6 commented 8 years ago

hi, not sure what's going on, but our tokenize action also stopped working recently. It even doesn't call our callback nor onSuccess or onError. It look like postMessage issue

syaiful6 commented 8 years ago

hmm look Example B in: https://developer.heartlandpaymentsystems.com/Documentation/tokenization-demo/#tokenization-demo also not work. I also use the same iframe and it doesn't work today.

slogsdon commented 8 years ago

@syaiful6 We are working on correcting the issue you're experiencing with #35, but it shouldn't be related to this deprecation

slogsdon commented 8 years ago

@syaiful6 We were able to release the update today. Would you please try again on your end?

syaiful6 commented 8 years ago

@slogsdon Thank you. look like it work now. So hps.Messages.post signature was changed?

slogsdon commented 8 years ago

@syaiful6 The function signature didn't change, but we added an additional message format for the tokenize action. This will allow us to offer some new features we have in the pipeline.