Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0db4b05aca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| fallback: () => { | ||
| alert("Please complete the payment in World App to proceed."); | ||
| }, |
There was a problem hiding this comment.
Guard pay example against fallback execution path
This example now passes a fallback callback, which means MiniKit.pay() can return executedWith: "fallback", but the snippet still treats result.data as a minikit payment payload and immediately POSTs it to /api/confirm-payment. In non-World-App contexts this can send undefined/non-payment data and make the verification step fail, so the sample should branch on result.executedWith (as done in other command docs) before using payment fields.
Useful? React with 👍 / 👎.
improve docs