Repository navigation
Rewrite the README as a getting-started guide - #2
Merged
Merged
Conversation
The README now follows what an integrator does, in order: create a key pair and register the public key with Presto, understand the payment flow, then a four-step quick start (client, init, return page, webhook handler) and a payment status table. Reference material moves to docs/: payments-and-errors.md (query, reverse, refund, errors, unknown outcomes, retries), webhooks.md (verification, replies, redelivery, freshness) and production.md (configuration, secret stores, several merchants, custom transports, go-live checklist, troubleshooting). AGENTS.md points at the new files.
Presto accepts the merchant public key and issues its own certificate only as .der, so the key-pair step exports merchant.der rather than a PEM certificate, and the docs describe Presto's certificate as .der.
Presto's init is idempotent by txnRefNum: a resend returns the existing payment and its current status. The Javadoc on PrestoPayClient, PaymentsClient.init and PaymentInitRequest still said not to retry it, and PaymentInitRequest claimed a duplicate returns 1203. The payments guide now recovers from an ambiguous init failure by calling init again, while reverse and refund still query first.
This was referenced Oct 1, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pilot of the new README structure for the SDKs. Once this one is agreed, the same template goes to Go, JS, PHP and Python.
README: the getting-started path
keytooland send Presto the public key, plus a table of what Presto gives you (mid,prestoMrn, certificate) and where each goes.eventRefNum, query, ack).docs/: reference material moved out of the README
payments-and-errors.md: query, reverse vs refund, the error table, handling an unknown outcome, retries and timeouts.webhooks.md: what an event carries, verification,ok/resendreplies, redelivery schedule, deduplication, freshness window, webhook-only services.production.md: environment configuration, loading keys from a secret store, several merchants, custom HTTP transport, go-live checklist, troubleshooting.Checked
keytool/opensslcommands were run, and the SDK loads their output../mvnw verifypasses.