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

Clarify when to use purchase/authorize/capture and confirm in README #211

Open
jamieburchell opened this issue Jan 25, 2022 · 0 comments
Open

Comments

@jamieburchell
Copy link

jamieburchell commented Jan 25, 2022

At the moment, the README reads like the purchase method is only for the Charges API. For the Payment Intents API it shows an example of using authorize and then just confirm, but no capture of the authorization. This is confusing to me, and I needed to read through the comments of the classes to understand when to use each and how to authorize and capture separately. The comments showing this seem to differ from the README example. It would be really helpful to show how to use the library for each use case. For example, how to authorise then capture later, when to use the confirm param: true/false (why might this be used) vs using the confirm method etc. The documentation also lacks detail on how to set a custom reference number to pick up later to retrieve payment details.

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

1 participant