Skip to content

Commit

Permalink
fixed issue with options being dropped from iframe sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreydpayne committed Mar 26, 2020
1 parent b041580 commit 8c68d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ export class BlockChypTokenizer {
src = this.gatewayHost
}
src = src + '/secure-input?key=' + tokenizingKey
src = src + '&origin=' + encodeURI(window.location.href)

if (options) {
// encode options
var optionsEncoded = Base64.encode(JSON.stringify(options))
src = src + '&options=' + optionsEncoded
}
src = src + '&origin=' + encodeURI(window.location.href)
bcFrame.setAttribute('src', src)
inputDiv.appendChild(bcFrame)
if (document.getElementById(divId + '-error')) {
Expand Down

0 comments on commit 8c68d1f

Please sign in to comment.