Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any events emitted for when tokenization is requested? #21

Open
eruvio opened this issue May 31, 2020 · 3 comments
Open

Are there any events emitted for when tokenization is requested? #21

eruvio opened this issue May 31, 2020 · 3 comments

Comments

@eruvio
Copy link

eruvio commented May 31, 2020

I want to trigger a loading state in my application when the payment request is initialized (i.e. Submit is clicked).

@slogsdon
Copy link
Contributor

slogsdon commented Jun 1, 2020

Hi @eruvio,

Yes, the submit button emits a click event. You can leverage it similar to the below:

const cardForm = GlobalPayments.creditCard.form("#credit-card");

cardForm.on("submit", "click", () => { /* submit button was clicked */ });

@SheikhFazeel
Copy link

Hi @slogsdon,

Can you tell me where to put the service URL?

@slogsdon
Copy link
Contributor

@SheikhFazeel There's no service URL configuration property for this library similar to what exists for our server-side SDKs. This library handles the necessary URLs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants