{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Checkout SDK Invoice Flows","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"checkout-sdk-invoice-flows","__idx":0},"children":["Checkout SDK Invoice Flows"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This guide covers invoice behavior for the \"Pay Now\" flow in Checkout SDK integrations."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"invoices-from-pay-now-flow","__idx":1},"children":["Invoices from \"Pay Now\" flow"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After a successful checkout, a DUR invoice is created. This invoice will show up in the merchant's dashboard, and will be available in the buyer's dashboard once captured."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The customer is redirected to your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success_url"]}," with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_invoice_id"]}," appended:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://www.merchantsite.com/confirm?merchant_invoice_id=czTrT9opfkBaYZNh\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["On your success page:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Redirect the customer to the order confirmation page or display an order confirmation message."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Store the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_invoice_id"]}," in your order management system, since it will be used to capture the invoice."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Mark the order payment as pending."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"invoice-capture","__idx":2},"children":["Invoice capture"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To send the invoice to the customer, capture the invoice using ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_invoice_id"]},"."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Environment"},"children":["Environment"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Production"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://app.resolvepay.com/api/invoices/<merchant_invoice_id>/capture"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sandbox"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://app-sandbox.resolvepay.com/api/invoices/<merchant_invoice_id>/capture"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use either HTTP Basic Auth (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant_id"]}," + ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["secret_key"]},") or Bearer token auth."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Success response:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"S189qSj9f\",\n  \"number\": \"R334-66S9\",\n  \"order_number\": \"ORDER NUMBER\",\n  \"amount_due\": 74.97,\n  \"sent_at\": \"2018-03-30T17:54:08.329Z\",\n  \"created_at\": \"2018-03-30T05:26:38.517Z\",\n  \"updated_at\": \"2018-03-30T17:54:08.330Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related-guide","__idx":3},"children":["Related guide"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/checkout-sdk"},"children":["Checkout SDK"]}]}]}]},"headings":[{"value":"Checkout SDK Invoice Flows","id":"checkout-sdk-invoice-flows","depth":1},{"value":"Invoices from \"Pay Now\" flow","id":"invoices-from-pay-now-flow","depth":2},{"value":"Invoice capture","id":"invoice-capture","depth":2},{"value":"Related guide","id":"related-guide","depth":2}],"frontmatter":{"seo":{"title":"Checkout SDK Invoice Flows"}},"lastModified":"2026-06-10T19:49:54.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/checkout-sdk-invoices","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}