You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
Hi,
I was trying this 'card.js' and run into errors.
First thing first, the example in README is using gz compression and I'm not sure if it is supposed to be decompressed on the fly or not but my browser console show card.js.gz:1 Uncaught SyntaxError: Invalid or unexpected token
When I remove the gz, the error is gone but I run into
omise.html:6 Uncaught ReferenceError: OmiseCard is not defined omise.html:23 Uncaught ReferenceError: OmiseCard is not defined
which is understandable because when I look into card.js, there is no exporting/declaring of OmiseCard obj.
I also try get a copy of gz version and decompress it and I see no different with uncompressed version
<html><body><scripttype="text/javascript" src="https://cdn.omise.co/card.js.gz"></script><scripttype="text/javascript">// Set default parametersOmiseCard.configure({publicKey: 'YOUR_PUBLIC_KEY',amount: 99500});// Configuring your own custom buttonOmiseCard.configureButton('#checkout-button-1',{frameLabel: 'Merchant site name',submitLabel: 'PAY NOW',});</script><formname="checkoutForm" method="POST" action="test.html"><!--Sample checkout for a 995.00 THB charge--><buttontype="submit" id="checkout-button-1">Checkout</button></form><scripttype="text/javascript">OmiseCard.attach();</script></body></html>
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I was trying this 'card.js' and run into errors.
First thing first, the example in README is using gz compression and I'm not sure if it is supposed to be decompressed on the fly or not but my browser console show
card.js.gz:1 Uncaught SyntaxError: Invalid or unexpected token
When I remove the gz, the error is gone but I run into
omise.html:6 Uncaught ReferenceError: OmiseCard is not defined
omise.html:23 Uncaught ReferenceError: OmiseCard is not defined
which is understandable because when I look into card.js, there is no exporting/declaring of OmiseCard obj.
I also try get a copy of gz version and decompress it and I see no different with uncompressed version
The text was updated successfully, but these errors were encountered: