Documentation should explain the need for a unique iFrame initialization script tag for each new iFrame instance and explicitly state the options object to pass to Spreedly.init().
e.g.
<script
id="spreedly-iframe-1"
data-environment-key="SPREEDLY_ENV_KEY"
data-number-id="spreedly-number-1"
data-cvv-id="spreedly-cvv-1">
</script>
<script
id="spreedly-iframe-2"
data-environment-key="SPREEDLY_ENV_KEY"
data-number-id="spreedly-number-2"
data-cvv-id="spreedly-cvv-2">
</script>
<script>
Spreedly.init(SPREEDLY_ENV_KEY, {
numberEl: 'spreedly-number-1',
cvvEl: 'spreedly-cvv-1'
});
let otherSpreedlyInstance = new SpreedlyPaymentFrame();
otherSpreedlyInstance.init(SPREEDLY_ENV_KEY, {
numberEl: 'spreedly-number-2',
cvvEl: 'spreedly-cvv-2'
});
</script>
Documentation should explain the need for a unique iFrame initialization script tag for each new iFrame instance and explicitly state the options object to pass to
Spreedly.init().e.g.