[{"data":1,"prerenderedAt":1251},["ShallowReactive",2],{"navigation_docs":3,"-packages-javascript-checkouts":465,"-packages-javascript-checkouts-surround":1246},[4,8,62,115,450],{"title":5,"path":6,"stem":7},"Introduction","\u002Fintroduction","0.introduction",{"title":9,"path":10,"stem":11,"children":12,"page":61},"Guides","\u002Fguides","1.guides",[13,17,21,25,29,33,37,41,45,49,53,57],{"title":14,"path":15,"stem":16},"Quickstart","\u002Fguides\u002Fquickstart","1.guides\u002F1.quickstart",{"title":18,"path":19,"stem":20},"Payouts & Settlement","\u002Fguides\u002Fpayouts","1.guides\u002F10.payouts",{"title":22,"path":23,"stem":24},"Customer Emails","\u002Fguides\u002Fcustomer-emails","1.guides\u002F11.customer-emails",{"title":26,"path":27,"stem":28},"Build your own integration","\u002Fguides\u002Fbuild-your-own-integration","1.guides\u002F2.build-your-own-integration",{"title":30,"path":31,"stem":32},"Selling Workflow","\u002Fguides\u002Fselling-workflow","1.guides\u002F2.selling-workflow",{"title":34,"path":35,"stem":36},"Vatly SDKs","\u002Fguides\u002Fsdks","1.guides\u002F3.sdks",{"title":38,"path":39,"stem":40},"Authentication","\u002Fguides\u002Fauthentication","1.guides\u002F4.authentication",{"title":42,"path":43,"stem":44},"Pagination","\u002Fguides\u002Fpagination","1.guides\u002F5.pagination",{"title":46,"path":47,"stem":48},"Errors","\u002Fguides\u002Ferrors","1.guides\u002F6.errors",{"title":50,"path":51,"stem":52},"Webhooks","\u002Fguides\u002Fwebhooks","1.guides\u002F7.webhooks",{"title":54,"path":55,"stem":56},"Idempotency","\u002Fguides\u002Fidempotency","1.guides\u002F8.idempotency",{"title":58,"path":59,"stem":60},"Testing","\u002Fguides\u002Ftesting","1.guides\u002F9.testing",false,{"title":63,"path":64,"stem":65,"children":66,"page":61},"Api Reference","\u002Fapi-reference","2.api-reference",[67,71,75,79,83,87,91,95,99,103,107,111],{"title":68,"path":69,"stem":70},"Customers","\u002Fapi-reference\u002Fcustomers","2.api-reference\u002F1.customers",{"title":72,"path":73,"stem":74},"Webhook Endpoints","\u002Fapi-reference\u002Fwebhook-endpoints","2.api-reference\u002F10.webhook-endpoints",{"title":76,"path":77,"stem":78},"Test helpers","\u002Fapi-reference\u002Ftest-helpers","2.api-reference\u002F11.test-helpers",{"title":80,"path":81,"stem":82},"Checkouts","\u002Fapi-reference\u002Fcheckouts","2.api-reference\u002F2.checkouts",{"title":84,"path":85,"stem":86},"One-off Products","\u002Fapi-reference\u002Fone-off-products","2.api-reference\u002F3.one-off-products",{"title":88,"path":89,"stem":90},"Subscriptions","\u002Fapi-reference\u002Fsubscriptions","2.api-reference\u002F4.subscriptions",{"title":92,"path":93,"stem":94},"Subscription Plans","\u002Fapi-reference\u002Fsubscription-plans","2.api-reference\u002F5.subscription-plans",{"title":96,"path":97,"stem":98},"Orders","\u002Fapi-reference\u002Forders","2.api-reference\u002F6.orders",{"title":100,"path":101,"stem":102},"Order Refunds","\u002Fapi-reference\u002Frefunds","2.api-reference\u002F7.refunds",{"title":104,"path":105,"stem":106},"Refunds","\u002Fapi-reference\u002Fglobal-refunds","2.api-reference\u002F8.global-refunds",{"title":108,"path":109,"stem":110},"Chargebacks","\u002Fapi-reference\u002Fchargebacks","2.api-reference\u002F9.chargebacks",{"title":112,"path":113,"stem":114},"Webhook Events","\u002Fapi-reference\u002Fwebhook-events","2.api-reference\u002F99.webhook-events",{"title":116,"path":117,"stem":118,"children":119},"Packages","\u002Fpackages","3.packages",[120,122,164,210,244,283,318,366,408],{"title":116,"path":117,"stem":121},"3.packages\u002Findex",{"title":123,"path":124,"stem":125,"children":126,"page":61},"PHP SDK","\u002Fpackages\u002Fphp","3.packages\u002F1.php",[127,131,134,137,140,144,147,151,154,157,160],{"title":128,"path":129,"stem":130},"Getting started","\u002Fpackages\u002Fphp\u002Freadme","3.packages\u002F1.php\u002F00.readme",{"title":68,"path":132,"stem":133},"\u002Fpackages\u002Fphp\u002Fcustomers","3.packages\u002F1.php\u002F02.customers",{"title":80,"path":135,"stem":136},"\u002Fpackages\u002Fphp\u002Fcheckouts","3.packages\u002F1.php\u002F03.checkouts",{"title":88,"path":138,"stem":139},"\u002Fpackages\u002Fphp\u002Fsubscriptions","3.packages\u002F1.php\u002F04.subscriptions",{"title":141,"path":142,"stem":143},"Subscription plans","\u002Fpackages\u002Fphp\u002Fsubscriptionplans","3.packages\u002F1.php\u002F05.subscriptionplans",{"title":96,"path":145,"stem":146},"\u002Fpackages\u002Fphp\u002Forders","3.packages\u002F1.php\u002F06.orders",{"title":148,"path":149,"stem":150},"One-off products","\u002Fpackages\u002Fphp\u002Foneoffproducts","3.packages\u002F1.php\u002F07.oneoffproducts",{"title":104,"path":152,"stem":153},"\u002Fpackages\u002Fphp\u002Frefunds","3.packages\u002F1.php\u002F08.refunds",{"title":108,"path":155,"stem":156},"\u002Fpackages\u002Fphp\u002Fchargebacks","3.packages\u002F1.php\u002F09.chargebacks",{"title":50,"path":158,"stem":159},"\u002Fpackages\u002Fphp\u002Fwebhooks","3.packages\u002F1.php\u002F10.webhooks",{"title":161,"path":162,"stem":163},"Webhook URLs","\u002Fpackages\u002Fphp\u002Fwebhookendpoints","3.packages\u002F1.php\u002F11.webhookendpoints",{"title":165,"path":166,"stem":167,"children":168,"page":61},"PHP Fluent","\u002Fpackages\u002Ffluent-php","3.packages\u002F2.fluent-php",[169,172,176,180,183,186,189,192,196,199,203,207],{"title":128,"path":170,"stem":171},"\u002Fpackages\u002Ffluent-php\u002Freadme","3.packages\u002F2.fluent-php\u002F00.readme",{"title":173,"path":174,"stem":175},"Configuration","\u002Fpackages\u002Ffluent-php\u002Fconfiguration","3.packages\u002F2.fluent-php\u002F01.configuration",{"title":177,"path":178,"stem":179},"Core concepts","\u002Fpackages\u002Ffluent-php\u002Fcoreconcepts","3.packages\u002F2.fluent-php\u002F02.coreconcepts",{"title":68,"path":181,"stem":182},"\u002Fpackages\u002Ffluent-php\u002Fcustomers","3.packages\u002F2.fluent-php\u002F03.customers",{"title":80,"path":184,"stem":185},"\u002Fpackages\u002Ffluent-php\u002Fcheckouts","3.packages\u002F2.fluent-php\u002F04.checkouts",{"title":88,"path":187,"stem":188},"\u002Fpackages\u002Ffluent-php\u002Fsubscriptions","3.packages\u002F2.fluent-php\u002F05.subscriptions",{"title":96,"path":190,"stem":191},"\u002Fpackages\u002Ffluent-php\u002Forders","3.packages\u002F2.fluent-php\u002F06.orders",{"title":193,"path":194,"stem":195},"Customer portal","\u002Fpackages\u002Ffluent-php\u002Fcustomerportal","3.packages\u002F2.fluent-php\u002F07.customerportal",{"title":50,"path":197,"stem":198},"\u002Fpackages\u002Ffluent-php\u002Fwebhooks","3.packages\u002F2.fluent-php\u002F08.webhooks",{"title":200,"path":201,"stem":202},"Webhook event flow","\u002Fpackages\u002Ffluent-php\u002Fwebhook-flow","3.packages\u002F2.fluent-php\u002F09.webhook-flow",{"title":204,"path":205,"stem":206},"Existing tables","\u002Fpackages\u002Ffluent-php\u002Fhost-owns-its-tables","3.packages\u002F2.fluent-php\u002F10.host-owns-its-tables",{"title":58,"path":208,"stem":209},"\u002Fpackages\u002Ffluent-php\u002Ftesting","3.packages\u002F2.fluent-php\u002F11.testing",{"title":211,"path":212,"stem":213,"children":214,"page":61},"Laravel","\u002Fpackages\u002Flaravel","3.packages\u002F3.laravel",[215,218,221,224,227,230,233,236,240],{"title":128,"path":216,"stem":217},"\u002Fpackages\u002Flaravel\u002Freadme","3.packages\u002F3.laravel\u002F00.readme",{"title":173,"path":219,"stem":220},"\u002Fpackages\u002Flaravel\u002Fconfiguration","3.packages\u002F3.laravel\u002F01.configuration",{"title":68,"path":222,"stem":223},"\u002Fpackages\u002Flaravel\u002Fcustomers","3.packages\u002F3.laravel\u002F02.customers",{"title":80,"path":225,"stem":226},"\u002Fpackages\u002Flaravel\u002Fcheckouts","3.packages\u002F3.laravel\u002F03.checkouts",{"title":88,"path":228,"stem":229},"\u002Fpackages\u002Flaravel\u002Fsubscriptions","3.packages\u002F3.laravel\u002F04.subscriptions",{"title":96,"path":231,"stem":232},"\u002Fpackages\u002Flaravel\u002Forders","3.packages\u002F3.laravel\u002F05.orders",{"title":50,"path":234,"stem":235},"\u002Fpackages\u002Flaravel\u002Fwebhooks","3.packages\u002F3.laravel\u002F06.webhooks",{"title":237,"path":238,"stem":239},"Comparison","\u002Fpackages\u002Flaravel\u002Fcomparison","3.packages\u002F3.laravel\u002F07.comparison",{"title":241,"path":242,"stem":243},"Migrating from Cashier","\u002Fpackages\u002Flaravel\u002Fmigrating-to-vatly","3.packages\u002F3.laravel\u002F08.migrating-to-vatly",{"title":245,"path":246,"stem":247,"children":248,"page":61},"JavaScript SDK","\u002Fpackages\u002Fjavascript","3.packages\u002F4.javascript",[249,252,255,258,261,264,267,270,273,276,279],{"title":128,"path":250,"stem":251},"\u002Fpackages\u002Fjavascript\u002Freadme","3.packages\u002F4.javascript\u002F00.readme",{"title":68,"path":253,"stem":254},"\u002Fpackages\u002Fjavascript\u002Fcustomers","3.packages\u002F4.javascript\u002F02.customers",{"title":80,"path":256,"stem":257},"\u002Fpackages\u002Fjavascript\u002Fcheckouts","3.packages\u002F4.javascript\u002F03.checkouts",{"title":88,"path":259,"stem":260},"\u002Fpackages\u002Fjavascript\u002Fsubscriptions","3.packages\u002F4.javascript\u002F04.subscriptions",{"title":141,"path":262,"stem":263},"\u002Fpackages\u002Fjavascript\u002Fsubscriptionplans","3.packages\u002F4.javascript\u002F05.subscriptionplans",{"title":96,"path":265,"stem":266},"\u002Fpackages\u002Fjavascript\u002Forders","3.packages\u002F4.javascript\u002F06.orders",{"title":148,"path":268,"stem":269},"\u002Fpackages\u002Fjavascript\u002Foneoffproducts","3.packages\u002F4.javascript\u002F07.oneoffproducts",{"title":104,"path":271,"stem":272},"\u002Fpackages\u002Fjavascript\u002Frefunds","3.packages\u002F4.javascript\u002F08.refunds",{"title":108,"path":274,"stem":275},"\u002Fpackages\u002Fjavascript\u002Fchargebacks","3.packages\u002F4.javascript\u002F09.chargebacks",{"title":50,"path":277,"stem":278},"\u002Fpackages\u002Fjavascript\u002Fwebhooks","3.packages\u002F4.javascript\u002F10.webhooks",{"title":280,"path":281,"stem":282},"API reference","\u002Fpackages\u002Fjavascript\u002Fapi","3.packages\u002F4.javascript\u002F12.api",{"title":284,"path":285,"stem":286,"children":287,"page":61},"JavaScript Fluent","\u002Fpackages\u002Ffluent-js","3.packages\u002F5.fluent-js",[288,291,294,297,300,303,306,309,312,315],{"title":128,"path":289,"stem":290},"\u002Fpackages\u002Ffluent-js\u002Freadme","3.packages\u002F5.fluent-js\u002F00.readme",{"title":173,"path":292,"stem":293},"\u002Fpackages\u002Ffluent-js\u002Fconfiguration","3.packages\u002F5.fluent-js\u002F01.configuration",{"title":177,"path":295,"stem":296},"\u002Fpackages\u002Ffluent-js\u002Fcoreconcepts","3.packages\u002F5.fluent-js\u002F02.coreconcepts",{"title":68,"path":298,"stem":299},"\u002Fpackages\u002Ffluent-js\u002Fcustomers","3.packages\u002F5.fluent-js\u002F03.customers",{"title":80,"path":301,"stem":302},"\u002Fpackages\u002Ffluent-js\u002Fcheckouts","3.packages\u002F5.fluent-js\u002F04.checkouts",{"title":88,"path":304,"stem":305},"\u002Fpackages\u002Ffluent-js\u002Fsubscriptions","3.packages\u002F5.fluent-js\u002F05.subscriptions",{"title":96,"path":307,"stem":308},"\u002Fpackages\u002Ffluent-js\u002Forders","3.packages\u002F5.fluent-js\u002F06.orders",{"title":193,"path":310,"stem":311},"\u002Fpackages\u002Ffluent-js\u002Fcustomerportal","3.packages\u002F5.fluent-js\u002F07.customerportal",{"title":50,"path":313,"stem":314},"\u002Fpackages\u002Ffluent-js\u002Fwebhooks","3.packages\u002F5.fluent-js\u002F08.webhooks",{"title":58,"path":316,"stem":317},"\u002Fpackages\u002Ffluent-js\u002Ftesting","3.packages\u002F5.fluent-js\u002F11.testing",{"title":319,"path":320,"stem":321,"children":322,"page":61},"Python SDK","\u002Fpackages\u002Fpython","3.packages\u002F6.python",[323,326,329,332,335,338,341,344,347,350,353,356,359,362],{"title":128,"path":324,"stem":325},"\u002Fpackages\u002Fpython\u002Freadme","3.packages\u002F6.python\u002F00.readme",{"title":173,"path":327,"stem":328},"\u002Fpackages\u002Fpython\u002Fconfiguration","3.packages\u002F6.python\u002F01.configuration",{"title":68,"path":330,"stem":331},"\u002Fpackages\u002Fpython\u002Fcustomers","3.packages\u002F6.python\u002F02.customers",{"title":80,"path":333,"stem":334},"\u002Fpackages\u002Fpython\u002Fcheckouts","3.packages\u002F6.python\u002F03.checkouts",{"title":88,"path":336,"stem":337},"\u002Fpackages\u002Fpython\u002Fsubscriptions","3.packages\u002F6.python\u002F04.subscriptions",{"title":141,"path":339,"stem":340},"\u002Fpackages\u002Fpython\u002Fsubscriptionplans","3.packages\u002F6.python\u002F05.subscriptionplans",{"title":96,"path":342,"stem":343},"\u002Fpackages\u002Fpython\u002Forders","3.packages\u002F6.python\u002F06.orders",{"title":148,"path":345,"stem":346},"\u002Fpackages\u002Fpython\u002Foneoffproducts","3.packages\u002F6.python\u002F07.oneoffproducts",{"title":104,"path":348,"stem":349},"\u002Fpackages\u002Fpython\u002Frefunds","3.packages\u002F6.python\u002F08.refunds",{"title":108,"path":351,"stem":352},"\u002Fpackages\u002Fpython\u002Fchargebacks","3.packages\u002F6.python\u002F09.chargebacks",{"title":50,"path":354,"stem":355},"\u002Fpackages\u002Fpython\u002Fwebhooks","3.packages\u002F6.python\u002F10.webhooks",{"title":161,"path":357,"stem":358},"\u002Fpackages\u002Fpython\u002Fwebhookendpoints","3.packages\u002F6.python\u002F11.webhookendpoints",{"title":280,"path":360,"stem":361},"\u002Fpackages\u002Fpython\u002Fapi","3.packages\u002F6.python\u002F12.api",{"title":363,"path":364,"stem":365},"Development","\u002Fpackages\u002Fpython\u002Fdevelopment","3.packages\u002F6.python\u002F13.development",{"title":367,"path":368,"stem":369,"children":370,"page":61},"Python Fluent","\u002Fpackages\u002Ffluent-python","3.packages\u002F7.fluent-python",[371,374,377,380,383,386,389,392,395,398,401,405],{"title":128,"path":372,"stem":373},"\u002Fpackages\u002Ffluent-python\u002Freadme","3.packages\u002F7.fluent-python\u002F00.readme",{"title":173,"path":375,"stem":376},"\u002Fpackages\u002Ffluent-python\u002Fconfiguration","3.packages\u002F7.fluent-python\u002F01.configuration",{"title":177,"path":378,"stem":379},"\u002Fpackages\u002Ffluent-python\u002Fcoreconcepts","3.packages\u002F7.fluent-python\u002F02.coreconcepts",{"title":68,"path":381,"stem":382},"\u002Fpackages\u002Ffluent-python\u002Fcustomers","3.packages\u002F7.fluent-python\u002F03.customers",{"title":80,"path":384,"stem":385},"\u002Fpackages\u002Ffluent-python\u002Fcheckouts","3.packages\u002F7.fluent-python\u002F04.checkouts",{"title":88,"path":387,"stem":388},"\u002Fpackages\u002Ffluent-python\u002Fsubscriptions","3.packages\u002F7.fluent-python\u002F05.subscriptions",{"title":96,"path":390,"stem":391},"\u002Fpackages\u002Ffluent-python\u002Forders","3.packages\u002F7.fluent-python\u002F06.orders",{"title":193,"path":393,"stem":394},"\u002Fpackages\u002Ffluent-python\u002Fcustomerportal","3.packages\u002F7.fluent-python\u002F07.customerportal",{"title":50,"path":396,"stem":397},"\u002Fpackages\u002Ffluent-python\u002Fwebhooks","3.packages\u002F7.fluent-python\u002F08.webhooks",{"title":58,"path":399,"stem":400},"\u002Fpackages\u002Ffluent-python\u002Ftesting","3.packages\u002F7.fluent-python\u002F11.testing",{"title":402,"path":403,"stem":404},"Porting","\u002Fpackages\u002Ffluent-python\u002Fporting","3.packages\u002F7.fluent-python\u002F12.porting",{"title":363,"path":406,"stem":407},"\u002Fpackages\u002Ffluent-python\u002Fdevelopment","3.packages\u002F7.fluent-python\u002F13.development",{"title":409,"path":410,"stem":411,"children":412,"page":61},"Django","\u002Fpackages\u002Fdjango","3.packages\u002F8.django",[413,416,420,423,427,431,434,437,440,444,447],{"title":128,"path":414,"stem":415},"\u002Fpackages\u002Fdjango\u002Freadme","3.packages\u002F8.django\u002F00.readme",{"title":417,"path":418,"stem":419},"Installation","\u002Fpackages\u002Fdjango\u002Finstallation","3.packages\u002F8.django\u002F01.installation",{"title":173,"path":421,"stem":422},"\u002Fpackages\u002Fdjango\u002Fconfiguration","3.packages\u002F8.django\u002F02.configuration",{"title":424,"path":425,"stem":426},"Billable models","\u002Fpackages\u002Fdjango\u002Fbillablemodels","3.packages\u002F8.django\u002F03.billablemodels",{"title":428,"path":429,"stem":430},"Checkout","\u002Fpackages\u002Fdjango\u002Fcheckout","3.packages\u002F8.django\u002F04.checkout",{"title":88,"path":432,"stem":433},"\u002Fpackages\u002Fdjango\u002Fbilling","3.packages\u002F8.django\u002F05.billing",{"title":193,"path":435,"stem":436},"\u002Fpackages\u002Fdjango\u002Fcustomerportal","3.packages\u002F8.django\u002F06.customerportal",{"title":50,"path":438,"stem":439},"\u002Fpackages\u002Fdjango\u002Fwebhooks","3.packages\u002F8.django\u002F07.webhooks",{"title":441,"path":442,"stem":443},"Admin","\u002Fpackages\u002Fdjango\u002Fadmin","3.packages\u002F8.django\u002F08.admin",{"title":58,"path":445,"stem":446},"\u002Fpackages\u002Fdjango\u002Ftesting","3.packages\u002F8.django\u002F09.testing",{"title":363,"path":448,"stem":449},"\u002Fpackages\u002Fdjango\u002Fdevelopment","3.packages\u002F8.django\u002F10.development",{"title":451,"path":452,"stem":453,"children":454},"Integrations","\u002Fintegrations","4.integrations",[455,457,461],{"title":451,"path":452,"stem":456},"4.integrations\u002Findex",{"title":458,"path":459,"stem":460},"Lovable payments with Vatly","\u002Fintegrations\u002Flovable","4.integrations\u002F1.lovable",{"title":462,"path":463,"stem":464},"Bolt payments with Vatly","\u002Fintegrations\u002Fbolt","4.integrations\u002F2.bolt",{"id":466,"title":80,"body":467,"description":1239,"extension":1240,"links":1241,"meta":1242,"navigation":1243,"path":256,"seo":1244,"stem":257,"__hash__":1245},"docs\u002F3.packages\u002F4.javascript\u002F03.checkouts.md",{"type":468,"value":469,"toc":1230},"minimark",[470,474,491,496,717,721,726,731,801,805,846,1077,1081,1086,1125,1129,1134,1226],[471,472,473],"p",{},"Checkouts create hosted payment pages for your customers. When a checkout completes successfully, an Order is created.",[471,475,476,477,484,485,490],{},"For all fields and options, see the ",[478,479,483],"a",{"href":480,"rel":481},"https:\u002F\u002Fdocs.vatly.com\u002Fapi-reference\u002Fcheckouts",[482],"nofollow","Checkouts API reference",". The ",[478,486,489],{"href":487,"rel":488},"https:\u002F\u002Fdocs.vatly.com\u002Fopenapi.yaml",[482],"OpenAPI spec"," is also available for tooling.",[492,493,495],"h2",{"id":494},"the-checkout-resource","The Checkout resource",[497,498,499,515],"table",{},[500,501,502],"thead",{},[503,504,505,509,512],"tr",{},[506,507,508],"th",{},"Name",[506,510,511],{},"Type",[506,513,514],{},"Description",[516,517,518,539,557,587,602,616,630,644,659,673,687,702],"tbody",{},[503,519,520,527,532],{},[521,522,523],"td",{},[524,525,526],"code",{},"id",[521,528,529],{},[524,530,531],{},"string",[521,533,534,535,538],{},"Unique identifier for the checkout (",[524,536,537],{},"checkout_…",").",[503,540,541,546,550],{},[521,542,543],{},[524,544,545],{},"resource",[521,547,548],{},[524,549,531],{},[521,551,552,553,556],{},"Always ",[524,554,555],{},"checkout",".",[503,558,559,564,568],{},[521,560,561],{},[524,562,563],{},"status",[521,565,566],{},[524,567,531],{},[521,569,570,573,574,573,577,573,580,583,584,556],{},[524,571,572],{},"created",", ",[524,575,576],{},"paid",[524,578,579],{},"canceled",[524,581,582],{},"failed",", or ",[524,585,586],{},"expired",[503,588,589,594,599],{},[521,590,591],{},[524,592,593],{},"customerId",[521,595,596],{},[524,597,598],{},"string | null",[521,600,601],{},"The customer this checkout is for, if known.",[503,603,604,609,613],{},[521,605,606],{},[524,607,608],{},"orderId",[521,610,611],{},[524,612,598],{},[521,614,615],{},"Order ID, available after successful payment.",[503,617,618,623,627],{},[521,619,620],{},[524,621,622],{},"redirectUrlSuccess",[521,624,625],{},[524,626,531],{},[521,628,629],{},"Where the customer returns on success.",[503,631,632,637,641],{},[521,633,634],{},[524,635,636],{},"redirectUrlCanceled",[521,638,639],{},[524,640,531],{},[521,642,643],{},"Where the customer returns on cancel.",[503,645,646,651,656],{},[521,647,648],{},[524,649,650],{},"metadata",[521,652,653],{},[524,654,655],{},"object | null",[521,657,658],{},"Your custom key\u002Fvalue metadata.",[503,660,661,666,670],{},[521,662,663],{},[524,664,665],{},"expiresAt",[521,667,668],{},[524,669,598],{},[521,671,672],{},"Expiration timestamp (ISO 8601).",[503,674,675,680,684],{},[521,676,677],{},[524,678,679],{},"createdAt",[521,681,682],{},[524,683,531],{},[521,685,686],{},"Creation timestamp (ISO 8601).",[503,688,689,694,699],{},[521,690,691],{},[524,692,693],{},"testmode",[521,695,696],{},[524,697,698],{},"boolean",[521,700,701],{},"Whether this is a test checkout.",[503,703,704,709,714],{},[521,705,706],{},[524,707,708],{},"links.checkoutUrl",[521,710,711],{},[524,712,713],{},"Link",[521,715,716],{},"The hosted page to send the customer to.",[492,718,720],{"id":719},"create-a-checkout","Create a checkout",[471,722,723],{},[524,724,725],{},"POST \u002Fv1\u002Fcheckouts",[727,728,730],"h3",{"id":729},"required-attributes","Required attributes",[497,732,733,743],{},[500,734,735],{},[503,736,737,739,741],{},[506,738,508],{},[506,740,511],{},[506,742,514],{},[516,744,745,775,788],{},[503,746,747,752,757],{},[521,748,749],{},[524,750,751],{},"products",[521,753,754],{},[524,755,756],{},"array",[521,758,759,760,763,764,766,767,770,771,774],{},"Product items to sell. Each item is ",[524,761,762],{},"{ id, quantity }",", where ",[524,765,526],{}," is a ",[524,768,769],{},"subscription_plan_…"," or ",[524,772,773],{},"one_off_product_…"," id.",[503,776,777,781,785],{},[521,778,779],{},[524,780,622],{},[521,782,783],{},[524,784,531],{},[521,786,787],{},"Success redirect URL.",[503,789,790,794,798],{},[521,791,792],{},[524,793,636],{},[521,795,796],{},[524,797,531],{},[521,799,800],{},"Cancel redirect URL.",[727,802,804],{"id":803},"optional-attributes","Optional attributes",[497,806,807,817],{},[500,808,809],{},[503,810,811,813,815],{},[506,812,508],{},[506,814,511],{},[506,816,514],{},[516,818,819,832],{},[503,820,821,825,829],{},[521,822,823],{},[524,824,593],{},[521,826,827],{},[524,828,531],{},[521,830,831],{},"Attach the checkout to an existing customer.",[503,833,834,838,843],{},[521,835,836],{},[524,837,650],{},[521,839,840],{},[524,841,842],{},"object",[521,844,845],{},"Custom metadata echoed back on the checkout and resulting order.",[847,848,853],"pre",{"className":849,"code":850,"language":851,"meta":852,"style":852},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const checkout = await vatly.checkouts.create({\n  redirectUrlSuccess: \"https:\u002F\u002Fyourapp.com\u002Fsuccess\",\n  redirectUrlCanceled: \"https:\u002F\u002Fyourapp.com\u002Fcanceled\",\n  products: [{ id: \"subscription_plan_abc123\", quantity: 1 }],\n  customerId: \"customer_abc123\",\n  metadata: { signupId: \"su_42\" },\n});\n\n\u002F\u002F Send the customer here:\nredirect(checkout.links.checkoutUrl.href);\n","ts","",[524,854,855,896,919,936,982,999,1025,1037,1044,1051],{"__ignoreMap":852},[856,857,860,864,868,872,876,879,881,884,886,890,893],"span",{"class":858,"line":859},"line",1,[856,861,863],{"class":862},"spNyl","const",[856,865,867],{"class":866},"sTEyZ"," checkout ",[856,869,871],{"class":870},"sMK4o","=",[856,873,875],{"class":874},"s7zQu"," await",[856,877,878],{"class":866}," vatly",[856,880,556],{"class":870},[856,882,883],{"class":866},"checkouts",[856,885,556],{"class":870},[856,887,889],{"class":888},"s2Zo4","create",[856,891,892],{"class":866},"(",[856,894,895],{"class":870},"{\n",[856,897,899,903,906,909,913,916],{"class":858,"line":898},2,[856,900,902],{"class":901},"swJcz","  redirectUrlSuccess",[856,904,905],{"class":870},":",[856,907,908],{"class":870}," \"",[856,910,912],{"class":911},"sfazB","https:\u002F\u002Fyourapp.com\u002Fsuccess",[856,914,915],{"class":870},"\"",[856,917,918],{"class":870},",\n",[856,920,922,925,927,929,932,934],{"class":858,"line":921},3,[856,923,924],{"class":901},"  redirectUrlCanceled",[856,926,905],{"class":870},[856,928,908],{"class":870},[856,930,931],{"class":911},"https:\u002F\u002Fyourapp.com\u002Fcanceled",[856,933,915],{"class":870},[856,935,918],{"class":870},[856,937,939,942,944,947,950,953,955,957,960,962,965,968,970,974,977,980],{"class":858,"line":938},4,[856,940,941],{"class":901},"  products",[856,943,905],{"class":870},[856,945,946],{"class":866}," [",[856,948,949],{"class":870},"{",[856,951,952],{"class":901}," id",[856,954,905],{"class":870},[856,956,908],{"class":870},[856,958,959],{"class":911},"subscription_plan_abc123",[856,961,915],{"class":870},[856,963,964],{"class":870},",",[856,966,967],{"class":901}," quantity",[856,969,905],{"class":870},[856,971,973],{"class":972},"sbssI"," 1",[856,975,976],{"class":870}," }",[856,978,979],{"class":866},"]",[856,981,918],{"class":870},[856,983,985,988,990,992,995,997],{"class":858,"line":984},5,[856,986,987],{"class":901},"  customerId",[856,989,905],{"class":870},[856,991,908],{"class":870},[856,993,994],{"class":911},"customer_abc123",[856,996,915],{"class":870},[856,998,918],{"class":870},[856,1000,1002,1005,1007,1010,1013,1015,1017,1020,1022],{"class":858,"line":1001},6,[856,1003,1004],{"class":901},"  metadata",[856,1006,905],{"class":870},[856,1008,1009],{"class":870}," {",[856,1011,1012],{"class":901}," signupId",[856,1014,905],{"class":870},[856,1016,908],{"class":870},[856,1018,1019],{"class":911},"su_42",[856,1021,915],{"class":870},[856,1023,1024],{"class":870}," },\n",[856,1026,1028,1031,1034],{"class":858,"line":1027},7,[856,1029,1030],{"class":870},"}",[856,1032,1033],{"class":866},")",[856,1035,1036],{"class":870},";\n",[856,1038,1040],{"class":858,"line":1039},8,[856,1041,1043],{"emptyLinePlaceholder":1042},true,"\n",[856,1045,1047],{"class":858,"line":1046},9,[856,1048,1050],{"class":1049},"sHwdD","\u002F\u002F Send the customer here:\n",[856,1052,1054,1057,1060,1062,1065,1067,1070,1072,1075],{"class":858,"line":1053},10,[856,1055,1056],{"class":888},"redirect",[856,1058,1059],{"class":866},"(checkout",[856,1061,556],{"class":870},[856,1063,1064],{"class":866},"links",[856,1066,556],{"class":870},[856,1068,1069],{"class":866},"checkoutUrl",[856,1071,556],{"class":870},[856,1073,1074],{"class":866},"href)",[856,1076,1036],{"class":870},[492,1078,1080],{"id":1079},"retrieve-a-checkout","Retrieve a checkout",[471,1082,1083],{},[524,1084,1085],{},"GET \u002Fv1\u002Fcheckouts\u002F{checkoutId}",[847,1087,1089],{"className":849,"code":1088,"language":851,"meta":852,"style":852},"const checkout = await vatly.checkouts.get(\"checkout_abc123\");\n",[524,1090,1091],{"__ignoreMap":852},[856,1092,1093,1095,1097,1099,1101,1103,1105,1107,1109,1112,1114,1116,1119,1121,1123],{"class":858,"line":859},[856,1094,863],{"class":862},[856,1096,867],{"class":866},[856,1098,871],{"class":870},[856,1100,875],{"class":874},[856,1102,878],{"class":866},[856,1104,556],{"class":870},[856,1106,883],{"class":866},[856,1108,556],{"class":870},[856,1110,1111],{"class":888},"get",[856,1113,892],{"class":866},[856,1115,915],{"class":870},[856,1117,1118],{"class":911},"checkout_abc123",[856,1120,915],{"class":870},[856,1122,1033],{"class":866},[856,1124,1036],{"class":870},[492,1126,1128],{"id":1127},"list-checkouts","List checkouts",[471,1130,1131],{},[524,1132,1133],{},"GET \u002Fv1\u002Fcheckouts",[847,1135,1137],{"className":849,"code":1136,"language":851,"meta":852,"style":852},"const page = await vatly.checkouts.list({ limit: 25 });\n\nfor await (const checkout of vatly.checkouts.listAll()) {\n  \u002F\u002F ...\n}\n",[524,1138,1139,1179,1183,1216,1221],{"__ignoreMap":852},[856,1140,1141,1143,1146,1148,1150,1152,1154,1156,1158,1161,1163,1165,1168,1170,1173,1175,1177],{"class":858,"line":859},[856,1142,863],{"class":862},[856,1144,1145],{"class":866}," page ",[856,1147,871],{"class":870},[856,1149,875],{"class":874},[856,1151,878],{"class":866},[856,1153,556],{"class":870},[856,1155,883],{"class":866},[856,1157,556],{"class":870},[856,1159,1160],{"class":888},"list",[856,1162,892],{"class":866},[856,1164,949],{"class":870},[856,1166,1167],{"class":901}," limit",[856,1169,905],{"class":870},[856,1171,1172],{"class":972}," 25",[856,1174,976],{"class":870},[856,1176,1033],{"class":866},[856,1178,1036],{"class":870},[856,1180,1181],{"class":858,"line":898},[856,1182,1043],{"emptyLinePlaceholder":1042},[856,1184,1185,1188,1190,1193,1195,1197,1200,1202,1204,1206,1208,1211,1214],{"class":858,"line":921},[856,1186,1187],{"class":874},"for",[856,1189,875],{"class":874},[856,1191,1192],{"class":866}," (",[856,1194,863],{"class":862},[856,1196,867],{"class":866},[856,1198,1199],{"class":870},"of",[856,1201,878],{"class":866},[856,1203,556],{"class":870},[856,1205,883],{"class":866},[856,1207,556],{"class":870},[856,1209,1210],{"class":888},"listAll",[856,1212,1213],{"class":866},"()) ",[856,1215,895],{"class":870},[856,1217,1218],{"class":858,"line":938},[856,1219,1220],{"class":1049},"  \u002F\u002F ...\n",[856,1222,1223],{"class":858,"line":984},[856,1224,1225],{"class":870},"}\n",[1227,1228,1229],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":852,"searchDepth":898,"depth":898,"links":1231},[1232,1233,1237,1238],{"id":494,"depth":898,"text":495},{"id":719,"depth":898,"text":720,"children":1234},[1235,1236],{"id":729,"depth":921,"text":730},{"id":803,"depth":921,"text":804},{"id":1079,"depth":898,"text":1080},{"id":1127,"depth":898,"text":1128},"Checkouts create hosted payment pages for your customers.","md",null,{},{"title":80},{"title":80,"description":1239},"648HVYVWpcCuX1U2EREh0M6G3_6BFCzLd9XKlNHerMI",[1247,1249],{"title":68,"path":253,"stem":254,"description":1248,"children":-1},"Customers represent the end users who purchase products through Vatly.",{"title":88,"path":259,"stem":260,"description":1250,"children":-1},"Subscriptions are recurring billing relationships.",1794594929349]