Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.
Dintero Gift Cards gives your customers the option to pay either fully or partially with a gift card in your checkout. This way you can create virtual gift cards which customers can use to pay an order in your store later.
Only one gift card can be used to authorize a session.
Gift cards are not supported for sessions where splits are specified.
Gift cards have precedence when a transaction is partially captured or
refunded
The refunded amount to a gift card cannot exceed what was initially
captured
Creating a session with Dintero Gift Cards enabled is currently only supported for the following payment options:
payex
bambora
dintero_psp
klarna.klarna
kravia (allowed but cannot be used in combination with gift card)
two (allowed but cannot be used in combination with gift card)
For kravia and two these payment methods will be disabled in the checkout when the customer adds a gift card as the payment method cannot be combined with a gift card, so please ensure that the payment session also contains at least one payment option that can be used in combination with a gift card.
There are two ways a gift card can be used to authorize a session:
Customer provides their gift card during the checkout flow.
Merchant provides the customer gift card when the session is
created.
Native push to payment Wallets (Vipps/MobilePay/Swish) will be disabled when
gift card is enabled as the payer must “use” their gift card before
being redirected to the Wallets app. Push will be done by sending SMS
containing link to checkout.
Customer initiated
This flow allows the payer to pay their order either fully or partially using a gift card, depending on the order amount and the available balance on the card.When the payer loads the checkout they get the option to add a gift card after they have entered their personal details and before they complete the authorization, as shown below:Please note that PIN is required in this case, meaning that the payer will need to input a PIN code in order to activate the gift card. To learn more about creating a card, including cards with PIN codes, please refer to the relevant documentationIf the gift card number and PIN entered are both correct and the gift card is valid, the gift card will be added to the session and the total amount will update to reflect the order amount minus the available balance on the gift card. In this example, the available balance was 100 NOK. The updated order amount after adding the gift card is therefore 400 - 100 = 300 NOK, as shown below:An example request for creating a session with Dintero Gift Cards enabled is shown below:
This flow is intended for the use case where the gift card is presented
before the session is created, e.g. the payer is authenticated
and the gift card is provided from the merchant CRM system.PIN is not required in this case, since the payer is known and authenticated.When the payer loads the checkout, it will display that a gift card has been activated and added to the session. The payer can then either proceed with the payment or remove the gift card. If they remove the gift card, they will need to input the gift card number and PIN code in order to activate it again.An example request for creating a session with Dintero Gift Cards enabled and preloaded is shown below:
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Dintero Documentation","colors":{"primary":"#0000FF","light":"#3578e5","dark":"#3578e5"},"logo":{"light":"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/light.svg?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=b4717f47bb69fef03f724e6356c03726","dark":"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/dark.svg?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=54190188f57c764d58061d5a470ad0a4"},"favicon":"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/favicon.png?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=25b7eac359342dc0dabf40fe08ea8cad","api":{"params":{"expanded":"closed"},"examples":{"defaults":"required","languages":["curl","python","javascript","go","java"]},"url":"full"},"appearance":{"default":"light"},"background":{"color":{"dark":"#171717"}},"navbar":{"links":[{"icon":"/mintlify-docs/assets/icons/external-link.svg","href":"https://checkout.demo.dintero.com/","label":"Demo Store"}],"primary":{"type":"button","label":"Get Started","href":"https://onboarding.dintero.com/"}},"seo":{"metatags":{"canonical":"https://docs.dintero.com"}},"integrations":{"cookies":{"key":"cookie_consent","value":"accepted"}},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dintero-c3a7bfec","hasAudioNarration":false,"actualSubdomain":"dintero-c3a7bfec","customDomains":["docs.dintero.com"],"gitSource":{"type":"github","owner":"dintero","repo":"api-spec","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afd942b44e4a89cdf98d841","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Reference","count":242},{"language":"default","tag":"Payments","count":172},{"language":"default","tag":"Loyalty \u0026 Virtual Cards","count":113},{"language":"default","tag":"Documentation","count":107},{"language":"default","tag":"Partners","count":42},{"language":"default","tag":"Order Management","count":40},{"language":"default","tag":"Developer Resources","count":38},{"language":"default","tag":"Plugins \u0026 Integrations","count":32},{"language":"default","tag":"Support","count":22},{"language":"default","tag":"Payment Methods","count":20}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@dintero.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[{"filePath":"mintlify-docs/styles.css","content":".dark #topbar-cta-button span{color:#fff}.method-pill~div .group{margin-left:0!important}@media (min-width: 1280px){#content-container:has(#api-playground-2-operation-page){display:grid!important;grid-template-columns:1fr 28rem!important;gap:0 3rem!important}#content-container:has(#api-playground-2-operation-page)>#content-area{display:contents!important}#api-playground-2-operation-page{display:contents!important}#api-playground-2-operation-page>.space-y-4{display:contents!important}#content-container:has(#api-playground-2-operation-page)>#content-area>*{grid-column:1!important}#content-container:has(#api-playground-2-operation-page)>#content-area>#header{grid-column:1 / -1!important;grid-row:1!important}#api-playground-2-operation-page .border-standard.rounded-2xl{grid-column:1 / -1!important;grid-row:2!important;margin-top:1.5rem!important}#api-playground-2-operation-page .max-h-\\[30rem\\]{display:none!important}#api-playground-2-operation-page>.mdx-content{grid-column:1!important;grid-row:3!important}#content-container:has(#api-playground-2-operation-page)>#content-side-layout{grid-column:2!important;grid-row:3!important;position:sticky!important;top:9.5rem!important;align-self:start!important;max-height:calc(100vh - 11rem)!important;height:auto!important;width:28rem!important;max-width:28rem!important;margin-top:2rem!important;gap:2rem!important}#content-container:has(#api-playground-2-operation-page) #pagination{grid-row:4!important}#content-container:has(#api-playground-2-operation-page) #footer{margin-top:3rem!important;grid-row:5!important}}#content-container:has(#api-playground-2-operation-page) #header p,#content-container:has(#api-playground-2-operation-page) #header a{margin-top:0!important;margin-bottom:12px!important;padding-top:0!important;padding-bottom:0!important;font-size:16px}#content-container:has(#api-playground-2-operation-page) #header ol,#content-container:has(#api-playground-2-operation-page) #header ul,#content-container:has(#api-playground-2-operation-page) #header li{margin-top:6px!important;margin-bottom:8px!important;padding-top:0!important;padding-bottom:0!important;font-size:16px}#content-container:has(#api-playground-2-operation-page) #header h2,#content-container:has(#api-playground-2-operation-page) #header h3,#content-container:has(#api-playground-2-operation-page) #header h4{margin-top:16px!important}#content-container:has(#api-playground-2-operation-page) #header hr{margin:20px 0!important}#content-container h2{margin-bottom:6px}.product-link span{color:var(--tw-prose-links);text-decoration:none;font-weight:600;border-bottom:1px solid rgb(var(--primary));word-wrap:break-word}.dark .product-link span{border-bottom-color:rgb(var(--primary-light))}.product-link:hover span{border-bottom-width:2px}.dark img[src*=\"/mintlify-docs/assets/icons/\"][src*=\".svg\"]{filter:brightness(0) invert(1)}"},{"filePath":"mintlify-docs/logo-display-builder.css","content":":root{--default-radius:8px;--text-paragraph-lg-line-height:28px;--text-paragraph-lg-font-size:18px;--text-paragraph-md-line-height:24px;--text-paragraph-md-font-size:16px;--text-paragraph-sm-line-height:20px;--text-paragraph-sm-font-size:14px;--text-paragraph-xs-line-height:20px;--text-paragraph-xs-font-size:12px;--text-overline-letter-spacing:1px;--text-overline-text-transform:uppercase;--text-overline-font-weight:600;--shadow-xs:0px 1px 2px 0px rgba(16, 24, 40, 0.1);--shadow-sm:0px 1px 3px 0px rgba(16, 24, 40, 0.1),\n\t\t0px 1px 2px 0px rgba(16, 24, 40, 0.06);--shadow-md:0px 4px 6px -1px rgba(16, 24, 40, 0.1),\n\t\t0px 2px 4px -1px rgba(16, 24, 40, 0.06);--shadow-lg:0px 10px 15px -3px rgba(16, 24, 40, 0.1),\n\t\t0px 4px 6px -2px rgba(16, 24, 40, 0.05);--shadow-xlg:0px 8px 10px -6px rgba(16, 24, 40, 0.1),\n\t\t0px 20px 25px -5px rgba(16, 24, 40, 0.1);--blur-none:none;--blur-sm:blur(4px);--blur-md:blur(8px);--blur-lg:blur(12px);--blur-xl:blur(20px);--spacing-xxs:4px;--spacing-xs:8px;--spacing-sm:16px;--spacing-md:24px;--spacing-lg:32px;--spacing-xlg:40px;--spacing-xxlg:48px;--spacing-xxxlg:56px;--spacing-xxxxlg:64px;--border-radius-sm:4px;--border-radius-md:8px;--border-radius-lg:12px;--border-radius-xlg:16px;--border-radius-xxlg:20px;--color-primary-50:#f2f6ff;--color-primary-100:#d9e4ff;--color-primary-200:#bfd1ff;--color-primary-300:#a6baff;--color-primary-400:#6889fe;--color-primary-500:#0000ff;--color-primary-600:#0000df;--color-primary-700:#0000bf;--color-primary-800:#000080;--color-primary-900:#000040;--color-neutral-50:#fafafa;--color-neutral-100:#f5f5f5;--color-neutral-200:#e5e5e5;--color-neutral-300:#d4d4d4;--color-neutral-400:#a3a3a3;--color-neutral-500:#737373;--color-neutral-600:#525252;--color-neutral-700:#404040;--color-neutral-800:#262626;--color-neutral-900:#171717;--color-destructive-50:#fef2f2;--color-destructive-100:#fee2e2;--color-destructive-200:#fecaca;--color-destructive-300:#fca5a5;--color-destructive-400:#f87171;--color-destructive-500:#ef4444;--color-destructive-600:#dc2626;--color-destructive-700:#b91c1c;--color-destructive-800:#991b1b;--color-destructive-900:#7f1d1d;--color-success-50:#f0fdf4;--color-success-100:#dcfce7;--color-success-200:#bbf7d0;--color-success-300:#86efac;--color-success-400:#4ade80;--color-success-500:#22c55e;--color-success-600:#16a34a;--color-success-700:#15803d;--color-success-800:#166534;--color-success-900:#14532d;--color-warning-50:#fffbeb;--color-warning-100:#fef3c7;--color-warning-200:#fde68a;--color-warning-300:#fcd34d;--color-warning-400:#fbbf24;--color-warning-500:#f59e0b;--color-warning-600:#d97706;--color-warning-700:#b45309;--color-warning-800:#92400e;--color-warning-900:#78350f;--color-surface:white;--color-code-surface:var(--color-neutral-900)}@media (prefers-color-scheme: dark){:root{--color-surface:#1f1f1f;--color-code-surface:#0a0a0a;--color-neutral-50:#171717;--color-neutral-100:#1f1f1f;--color-neutral-200:#292929;--color-neutral-300:#404040;--color-neutral-400:#737373;--color-neutral-500:#a3a3a3;--color-neutral-600:#d4d4d4;--color-neutral-700:#e5e5e5;--color-neutral-800:#f5f5f5;--color-neutral-900:#fafafa;--color-primary-50:#0d0d33;--color-primary-100:#1a1a5c;--color-success-50:#0a1a0f;--color-success-100:#0f2a15;--shadow-xs:0px 1px 2px 0px rgba(0, 0, 0, 0.4);--shadow-sm:0px 1px 3px 0px rgba(0, 0, 0, 0.4), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);--shadow-md:0px 4px 6px -1px rgba(0, 0, 0, 0.4), 0px 2px 4px -1px rgba(0, 0, 0, 0.3);--shadow-lg:0px 10px 15px -3px rgba(0, 0, 0, 0.4), 0px 4px 6px -2px rgba(0, 0, 0, 0.2)}}"}],"page":{"pagePath":"docs/checkout/gift-cards","slug":"/docs/checkout/gift-cards","pageMetadata":{"id":"gift-cards","title":"Pay with gift cards in Checkout","description":"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.","sidebar_label":"Gift Cards","href":"/docs/checkout/gift-cards"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,OptimizedImage}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Dintero Gift Cards gives your customers the option to pay either fully or partially with a gift card in your checkout. This way you can create virtual gift cards which customers can use to pay an order in your store later.`}),`\n`,_jsxs(Info,{children:[_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Only one gift card can be used to authorize a session.`}),`\n`,_jsxs(_components.li,{children:[`Gift cards are `,_jsx(_components.em,{children:`not`}),` supported for sessions where splits are specified.`]}),`\n`,_jsx(_components.li,{children:`Gift cards have precedence when a transaction is partially captured or\nrefunded`}),`\n`,_jsx(_components.li,{children:`The refunded amount to a gift card cannot exceed what was initially\ncaptured`}),`\n`]}),_jsx(_components.p,{children:`Creating a session with Dintero Gift Cards enabled is currently only supported for the following payment options:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`payex`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`bambora`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`dintero_psp`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`klarna.klarna`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`kravia`}),` (allowed but cannot be used in combination with gift card)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`two`}),` (allowed but cannot be used in combination with gift card)`]}),`\n`]}),_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`kravia`}),` and `,_jsx(_components.code,{children:`two`}),` these payment methods will be disabled in the checkout when the customer adds a gift card as the payment method cannot be combined with a gift card, so please ensure that the payment session also contains at least one payment option that can be used in combination with a gift card.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-gift-cards`,children:`Creating gift cards`}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/docs/loyalty/wallet-create-gift-card`,children:`gift card documentation`}),` for info about creating gift cards with pin codes.`]}),`\n`,_jsx(Heading,{level:`2`,id:`using-gift-cards-in-the-checkout`,children:`Using gift cards in the checkout`}),`\n`,_jsx(_components.p,{children:`There are two ways a gift card can be used to authorize a session:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Customer provides their gift card during the checkout flow.`}),`\n`,_jsx(_components.li,{children:`Merchant provides the customer gift card when the session is\ncreated.`}),`\n`]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Native push to payment Wallets (Vipps/MobilePay/Swish) will be disabled when\ngift card is enabled as the payer must “use” their gift card before\nbeing redirected to the Wallets app. Push will be done by sending SMS\ncontaining link to checkout.`})}),`\n`,_jsx(Heading,{level:`3`,id:`customer-initiated`,children:`Customer initiated`}),`\n`,_jsx(_components.p,{children:`This flow allows the payer to pay their order either fully or partially using a gift card, depending on the order amount and the available balance on the card.`}),`\n`,_jsx(_components.p,{children:`When the payer loads the checkout they get the option to add a gift card after they have entered their personal details and before they complete the authorization, as shown below:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-input.png?fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=88e60fdc63c4cf6a53e612335d267386`,alt:`Gift card input`,\"data-og-width\":`2248`,width:`2248`,\"data-og-height\":`802`,height:`802`,\"data-path\":`docs/assets/checkout/gift-card-input.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-input.png?w=280\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=040d1321f3bc0606833aa5f4a6c7d76c 280w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-input.png?w=560\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=66a6a67101ed8afae50197f2a11302e4 560w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-input.png?w=840\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=19b2cb7d783cd6f36e86d49ff37c616c 840w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-input.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=56c4b0e8304989f8889c1e8828ae53d7 1100w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-input.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=87f9bd9324560e39e78c5705391882c3 1650w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-input.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=4a047fea9a1224502979f023dc511265 2500w`}),`\n`,_jsxs(_components.p,{children:[`Please note that PIN is required in this case, meaning that the payer will need to input a PIN code in order to activate the gift card. To learn more about creating a card, including cards with PIN codes, please refer to the `,_jsx(_components.a,{href:`/docs/loyalty/wallet-create-gift-card`,children:`relevant documentation`})]}),`\n`,_jsx(_components.p,{children:`If the gift card number and PIN entered are both correct and the gift card is valid, the gift card will be added to the session and the total amount will update to reflect the order amount minus the available balance on the gift card. In this example, the available balance was 100 NOK. The updated order amount after adding the gift card is therefore 400 - 100 = 300 NOK, as shown below:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-added.png?fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=8d2e858a3a9a1a6c2ce9980704bcd729`,alt:`Gift card added`,\"data-og-width\":`2254`,width:`2254`,\"data-og-height\":`1022`,height:`1022`,\"data-path\":`docs/assets/checkout/gift-card-added.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-added.png?w=280\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=709dc878265fcb2ce891555cd98653f4 280w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-added.png?w=560\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=62320378d18e0936cf6ba5f6cf513037 560w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-added.png?w=840\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=b434bbf78bc783c540b2438a0deee7ee 840w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-added.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=072e4a608074ddd09c2b1694adcd1304 1100w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-added.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=592de1f7d0e8be016f5d8d0c7c7cadd5 1650w, https://mintcdn.com/dintero-c3a7bfec/TiCvqt4VXcXnNQNe/docs/assets/checkout/gift-card-added.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TiCvqt4VXcXnNQNe\u0026q=85\u0026s=38b16accee0cf88e85e377acc5d04a90 2500w`}),`\n`,_jsx(_components.p,{children:`An example request for creating a session with Dintero Gift Cards enabled is shown below:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`42`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`42`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.dintero.com/v1/accounts/{account_id}/payments/sessions-profile`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer \u003ctoken>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"return_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/accept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callback_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/callback?method=GET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_terms_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/terms.html\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`72200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NOK\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vat_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`13660`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`72200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Forsvinnignspølse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"configuration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"active_payment_types\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dintero\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"wallets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment_product_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"profile_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"default\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"logo_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://example.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:`See related documentation for more information about creating sessions`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/docs/checkout/create-session`,children:`Create a session`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/session/checkout_session_profile_post`,children:`Checkout API reference`})}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`merchant-initiated`,children:`Merchant initiated`}),`\n`,_jsx(_components.p,{children:`This flow is intended for the use case where the gift card is presented\nbefore the session is created, e.g. the payer is authenticated\nand the gift card is provided from the merchant CRM system.`}),`\n`,_jsxs(_components.p,{children:[`PIN is `,_jsx(_components.em,{children:`not`}),` required in this case, since the payer is known and authenticated.`]}),`\n`,_jsx(_components.p,{children:`When the payer loads the checkout, it will display that a gift card has been activated and added to the session. The payer can then either proceed with the payment or remove the gift card. If they remove the gift card, they will need to input the gift card number and PIN code in order to activate it again.`}),`\n`,_jsx(_components.p,{children:`An example request for creating a session with Dintero Gift Cards enabled and preloaded is shown below:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`56`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`56`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` https://api.dintero.com/v1/accounts/{account_id}/payments/sessions-profile`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer \u003ctoken>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"return_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/accept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callback_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/callback?method=GET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_terms_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/terms.html\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gift_cards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dintero.wallets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"card_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{wallets.card_id}\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`72200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NOK\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vat_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`13660`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`72200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Forsvinnignspølse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"vat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"configuration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"active_payment_types\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dintero\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"wallets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment_product_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"zero\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment_product_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payability\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payable\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"profile_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"default\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"logo_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://example.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"id":"gift-cards","title":"Pay with gift cards in Checkout","description":"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.","sidebar_label":"Gift Cards","href":"/docs/checkout/gift-cards"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Creating gift cards","slug":"creating-gift-cards","depth":2,"children":[]},{"title":"Using gift cards in the checkout","slug":"using-gift-cards-in-the-checkout","depth":2,"children":[{"title":"Customer initiated","slug":"customer-initiated","depth":3,"children":[]},{"title":"Merchant initiated","slug":"merchant-initiated","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dintero-c3a7bfec/0c27980f89959f8a/scripts/extract-refs.js","/_mintlify/custom/dintero-c3a7bfec/9be648d34348ecd1/scripts/openapi3/convert-to-oa3.js","/_mintlify/custom/dintero-c3a7bfec/acc74eb2f1533c09/scripts/openapi3/convert-to-oa3.test.js","/_mintlify/custom/dintero-c3a7bfec/d1577eed3797a41e/mintlify-docs/cookie-script.js","/_mintlify/custom/dintero-c3a7bfec/ad1f40ff54bd5bfe/mintlify-docs/logo-display-builder.js","/_mintlify/custom/dintero-c3a7bfec/9b750c905d163779/scripts/openapi3/build-operation-map.js","/_mintlify/custom/dintero-c3a7bfec/92de388c069f1bef/scripts/check-broken-links.js","/_mintlify/custom/dintero-c3a7bfec/8ad753e6099cf1b7/scripts/openapi3/build-operation-map.test.js"],"subdomain":"dintero-c3a7bfec","siteName":"Dintero Documentation","title":"Pay with gift cards in Checkout - Dintero Documentation","contextualStarterQuestions":[{"_id":"6aea1decd2b7d1adb9c250e6","deploymentId":"69d66e893989d4678a7dfb08","questionText":"How do I enable gift cards?","status":"active","generatedBy":"contextual","path":"docs/checkout/gift-cards","createdAt":"2026-11-03T17:46:20.090Z","updatedAt":"2026-11-03T17:46:20.090Z","__v":0},{"_id":"6aea1decd2b7d1adb9c250e8","deploymentId":"69d66e893989d4678a7dfb08","questionText":"Can customers use multiple gift cards?","status":"active","generatedBy":"contextual","path":"docs/checkout/gift-cards","createdAt":"2026-11-03T17:46:20.090Z","updatedAt":"2026-11-03T17:46:20.090Z","__v":0},{"_id":"6aea1decd2b7d1adb9c250e7","deploymentId":"69d66e893989d4678a7dfb08","questionText":"What payment methods support gift cards?","status":"active","generatedBy":"contextual","path":"docs/checkout/gift-cards","createdAt":"2026-11-03T17:46:20.090Z","updatedAt":"2026-11-03T17:46:20.090Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-09T10:13:13.950Z","gitLastModified":"2026-10-09T10:11:41.000Z","originalFileLocation":"docs/checkout/gift-cards.md"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dintero Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Pay with gift cards in Checkout - Dintero Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dintero Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dintero.com/docs/checkout/gift-cards\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dintero-c3a7bfec.mintlify.site/_mintlify/api/og/v2?division=Payment+Methods\u0026amp;title=Pay+with+gift+cards+in+Checkout\u0026amp;description=Let+customers+pay+full+or+partial+amounts+with+Dintero+virtual+gift+cards+in+Dintero+Checkout+%2C+including+capture%2C+refund%2C+and+split-payment+behavior+rules.\u0026amp;theme=32b11d411eb265d03df273ed\u0026amp;signature=bffe498854dedbfdc1c1225396a59c94e8bb0e5c36ccffcb90ebf7b40c0f4233\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Pay with gift cards in Checkout - Dintero Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dintero-c3a7bfec.mintlify.site/_mintlify/api/og/v2?division=Payment+Methods\u0026amp;title=Pay+with+gift+cards+in+Checkout\u0026amp;description=Let+customers+pay+full+or+partial+amounts+with+Dintero+virtual+gift+cards+in+Dintero+Checkout+%2C+including+capture%2C+refund%2C+and+split-payment+behavior+rules.\u0026amp;theme=32b11d411eb265d03df273ed\u0026amp;signature=bffe498854dedbfdc1c1225396a59c94e8bb0e5c36ccffcb90ebf7b40c0f4233\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dintero Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0000FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dintero.com/docs/checkout/gift-cards\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/checkout/gift-cards.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dintero.com/#organization\",\"name\":\"Dintero Documentation\",\"url\":\"https://docs.dintero.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/light.svg?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=b4717f47bb69fef03f724e6356c03726\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dintero.com#website\",\"name\":\"Dintero Documentation\",\"url\":\"https://docs.dintero.com\",\"publisher\":{\"@id\":\"https://docs.dintero.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dintero.com/docs/checkout/gift-cards#webpage\",\"url\":\"https://docs.dintero.com/docs/checkout/gift-cards\",\"name\":\"Pay with gift cards in Checkout\",\"description\":\"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.\",\"dateModified\":\"2026-10-09T10:11:41.000Z\",\"isPartOf\":{\"@id\":\"https://docs.dintero.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dintero.com/docs/checkout/gift-cards#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dintero.com/docs/checkout/gift-cards#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payment Methods\",\"item\":\"https://docs.dintero.com/docs/checkout/apple-pay/apple-pay-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pay with gift cards in Checkout\",\"item\":\"https://docs.dintero.com/docs/checkout/gift-cards\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dintero.com/docs/checkout/gift-cards#article\",\"headline\":\"Pay with gift cards in Checkout\",\"name\":\"Pay with gift cards in Checkout\",\"description\":\"Let customers pay full or partial amounts with Dintero virtual gift cards in Dintero Checkout , including capture, refund, and split-payment behavior rules.\",\"url\":\"https://docs.dintero.com/docs/checkout/gift-cards\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dintero.com/docs/checkout/gift-cards#webpage\"},\"dateModified\":\"2026-10-09T10:11:41.000Z\",\"publisher\":{\"@id\":\"https://docs.dintero.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dintero.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dintero Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dintero Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/checkout/gift-cards.md","siteName":"Dintero Documentation","nav":{"global":null,"products":[{"product":"Payments","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/shopping-cart.svg","description":"Dintero Checkout and In-Person Payments","tabs":[{"tab":" ","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/home.svg","pages":[{"title":" ","href":"/docs"}]},{"tab":"Get started","pages":[{"title":"Get started","href":"/docs/checkout"}]},{"tab":"Documentation","groups":[{"group":"Checkout Integration","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/shopping-cart.svg","pages":[{"title":"Creating a checkout session","href":"/docs/checkout/create-session"},{"title":"Age verification","href":"/docs/checkout/age-verification"},{"title":"Show the checkout to the customer","href":"/docs/checkout/display-checkout"},{"title":"Embedded vs redirect checkout","href":"/docs/checkout/embedVredirect"},{"title":"Handling payment","href":"/docs/checkout/after-payment"},{"title":"Checkout Webhook","href":"/docs/checkout/checkout-webhooks"},{"title":"Transaction management","href":"/docs/checkout/transaction-management"},{"title":"Transaction state diagram","href":"/docs/checkout/transaction-state-diagram"},{"title":"Adding discount metadata to sessions","href":"/docs/checkout/discount-metadata"}]},{"group":"Express Checkout","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/lightning-bolt.svg","pages":[{"title":"Dintero Checkout Express","href":"/docs/checkout/express"},{"title":"Shipping options in Checkout Express","href":"/docs/checkout/shipping-options"},{"title":"Multiple shipments in Checkout Express","href":"/docs/checkout/shipping-options-multiple-shipments"},{"title":"Shipping address callback","href":"/docs/checkout/shipping-address-callback"},{"title":"Discount codes in Express Checkout","href":"/docs/checkout/checkout-express-discount-code"},{"title":"Updating a checkout session","href":"/docs/checkout/updating-session"}]},{"group":"In-Person Payments","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/terminal.svg","pages":[{"title":"In-person payments overview","sidebarTitle":"Overview","href":"/docs/checkout/in-person/overview"},{"title":"Terminal onboarding","sidebarTitle":"Terminal onboarding","href":"/docs/checkout/in-person/terminal-onboarding"},{"title":"Test with a simulated terminal","sidebarTitle":"Test with a simulated terminal","href":"/docs/checkout/in-person/simulated-terminals"},{"title":"Creating a terminal session","sidebarTitle":"Creating a terminal session","href":"/docs/checkout/in-person/creating-terminal-session"},{"title":"Manage terminals remotely","sidebarTitle":"Manage terminals remotely","href":"/docs/checkout/in-person/terminal-operations"},{"title":"Tipping","sidebarTitle":"Tipping","href":"/docs/checkout/in-person/tipping"},{"title":"Troubleshooting your terminal","sidebarTitle":"Terminal troubleshooting","href":"/docs/checkout/in-person/terminal-troubleshooting"}]},{"group":"Payment Methods","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/credit-card.svg","pages":[{"group":"Apple Pay™","pages":[{"title":"Overview","href":"/docs/checkout/apple-pay/apple-pay-overview"},{"title":"Dintero Hosted Checkout","href":"/docs/checkout/apple-pay/apple-pay-hosted-checkout"},{"title":"Native app integration","href":"/docs/checkout/apple-pay/apple-pay-native-app"},{"title":"Tokenization and MIT","href":"/docs/checkout/apple-pay/apple-pay-tokenization"}]},{"group":"Google Pay™","pages":[{"title":"Overview","href":"/docs/checkout/google-pay/google-pay-overview"},{"title":"Dintero Hosted Checkout","href":"/docs/checkout/google-pay/google-pay-hosted-checkout"},{"title":"Native app integration","href":"/docs/checkout/google-pay/google-pay-native-app"}]},{"group":"Click to Pay","pages":[{"title":"Overview","href":"/docs/checkout/click-to-pay/overview"},{"title":"Dintero Hosted Checkout","href":"/docs/checkout/click-to-pay/hosted-checkout"}]},{"group":"Kravia","pages":[{"title":"Overview","href":"/docs/checkout/kravia/overview"},{"title":"Customer checkout with Kravia","href":"/docs/checkout/kravia/checkout"},{"title":"Grouped invoices (B2B) with Kravia","href":"/docs/checkout/kravia/grouped-invoices"},{"title":"Kravia merchant initiated payments","href":"/docs/checkout/kravia/merchant-initiated-payments"},{"title":"Kravia invoice delivery","href":"/docs/checkout/kravia/invoice-delivery"}]},{"title":"Two B2B invoice payments","href":"/docs/checkout/two"},{"title":"Vipps mobile payments","href":"/docs/checkout/vipps"},{"title":"Klarna EMD attachments","href":"/docs/checkout/klarna-emd"},{"title":"Walley B2B invoice payments","description":"Implement Walley B2B invoice payments with Dintero Checkout Express to capture an approved business shipping address that meets Walley's invoicing requirements.","href":"/docs/checkout/walley-b2b"},{"title":"Pay with gift cards in Checkout","href":"/docs/checkout/gift-cards"},{"title":"Pay in store","description":"Allow customers to reserve an order online and pay in store.","href":"/docs/checkout/pay-in-store"}]},{"group":"Tokenization","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/lock-closed.svg","pages":[{"title":"Card tokenization overview","href":"/docs/checkout/tokenization"},{"title":"Create a card token","href":"/docs/checkout/tokenization-create-token"},{"title":"Fetch and store payment tokens","href":"/docs/checkout/tokenization-fetching-storing"},{"title":"Use a stored card token","href":"/docs/checkout/tokenization-use-token"},{"title":"Tokenization error handling","href":"/docs/checkout/tokenization-error-handling"},{"title":"Recurring subscription example","href":"/docs/checkout/subscription-example"}]},{"group":"Split Payout","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/switch-horizontal.svg","pages":[{"title":"Split Payout overview","href":"/docs/checkout/split-payment/split-overview"},{"title":"Activate Dintero Payout","href":"/docs/checkout/split-payment/activate-payout"},{"title":"Add sellers and payout destinations","href":"/docs/checkout/split-payment/add-payout-destinations"},{"title":"Create a session with split payments","href":"/docs/checkout/split-payment/creating-split-session"},{"title":"Testing split payouts","href":"/docs/checkout/split-payment/testing-split-payments"},{"title":"Split payout reports","href":"/docs/checkout/split-payment/split-reports"},{"title":"Transfer funds between sellers","href":"/docs/checkout/split-payment/fund-transfer"}]}]},{"tab":"Developer Resources","pages":[{"title":"Developer Resources","href":"/docs/checkout/payment-profiles"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/authenticate/aid_auths_oauth_token_post"}]}]},{"product":"Loyalty \u0026 Virtual Cards","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/gift.svg","description":"Customer, discount, receipt, and gift card services","pages":[{"title":"Loyalty \u0026 Virtual Cards","href":"/docs/loyalty/getting-started"}]},{"product":"Order Management","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/cube.svg","description":"Create and manage orders, captures, refunds, and draft orders","pages":[{"title":"Order Management","href":"/docs/order-management/overview"}]},{"product":"Partners","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/hand.svg","description":"Partner management and API access","pages":[{"title":"Partners","href":"/docs/partners/partners"}]},{"product":"Plugins \u0026 Integrations","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/puzzle.svg","description":"E-commerce plugins and POS integrations","pages":[{"title":"Plugins \u0026 Integrations","href":"/docs/integrations/plugins"}]},{"product":"API Specifications","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/code.svg","description":"All API Specifications","hidden":true,"pages":[{"title":"API Specifications","href":"/apps-directory-api/apps/api_apps_directory_app_id_type_sig_get"}]}]},"basePath":"","title":"Pay with gift cards in Checkout - Dintero Documentation","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B9O1U98p.js","lightbox-handle-r17bVUz3.js"]}