Created
January 3, 2018 18:40
-
-
Save mootrichard/7ac92d29f3fd35ad1246b564ce037821 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getScript("https://js.squareup.com/v2/paymentform").done(function () { | |
paymentForm = new SqPaymentForm({ | |
// Setup your SqPaymentForm object, see https://docs.connect.squareup.com/payments/sqpaymentform/sqpaymentform-setup | |
// for more details | |
}); | |
// We're manually building the form here, since the page is already loaded and won't trigger the event SqPaymentForm | |
// is expecting | |
paymentForm.build(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment