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

How to process a payment? #30

Open
SheikhFazeel opened this issue Sep 25, 2020 · 1 comment
Open

How to process a payment? #30

SheikhFazeel opened this issue Sep 25, 2020 · 1 comment

Comments

@SheikhFazeel
Copy link

SheikhFazeel commented Sep 25, 2020

Can you give me some Javascript example of how we can process a payment?
Like we can do in Java, c#, node, PHP We simply make a request shown in the attachment and it returns the response.
image

@slogsdon
Copy link
Contributor

@SheikhFazeel We don't expose this functionality within this library. It's designed as a purely client-side solution, and having the complete payment experience live within the client-side code of your integration would expose the sensitive credentials used during gateway communication, opening up potential fraud risk to the merchant account(s) you're supporting. Your best option is to use this library to obtain a token for the card value and pass that to a backend service for completing the authorization / payment request.

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

2 participants