{"_id":"@bob-payments/checkout-sdk","_rev":"2-74823dda584c6a60546eeb1fe42f34f0","name":"@bob-payments/checkout-sdk","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@bob-payments/checkout-sdk","version":"0.1.0","license":"UNLICENSED","_id":"@bob-payments/checkout-sdk@0.1.0","maintainers":[{"name":"bob-company","email":"developer@payments.bob.company"}],"homepage":"https://github.com/BobPayments/bob-payments-checkout#readme","bugs":{"url":"https://github.com/BobPayments/bob-payments-checkout/issues"},"dist":{"shasum":"31d025caecfb43afcbc0f1964ab8d24937f0e73b","tarball":"https://registry.npmjs.org/@bob-payments/checkout-sdk/-/checkout-sdk-0.1.0.tgz","fileCount":5,"integrity":"sha512-IsudZCJ+bTdRHVDEIuRfBMBsLQwAy2SgHggL5hFuunOIkq2Brktjo+OG+SXxYUmn2UFI6E/LfuvOc0/3QEYJJg==","signatures":[{"sig":"MEUCIQDuQHu7KhB6SQqeXz0MW2IDT4KleLtxj/DHg7wx7jdyGgIgbNlzHXa1/43pTGzWca4I1320yghSA+ypRfwhNHpy/po=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37452},"type":"module","exports":{".":"./src/index.tsx","./core":"./src/core.ts","./package.json":"./package.json"},"scripts":{"test:run":"vitest run","typecheck":"tsc --noEmit"},"_npmUser":{"name":"bob-company","email":"developer@payments.bob.company"},"repository":{"url":"git+https://github.com/BobPayments/bob-payments-checkout.git","type":"git","directory":"packages/checkout-sdk"},"_npmVersion":"10.9.8","description":"SDK público do Bob Checkout para checkout embutível, tokenização segura de cartão e criação de pagamento sem expor Stripe ao lojista.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@stripe/stripe-js":"^9.12.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^27.4.0","vitest":"^4.0.17","typescript":"^5","@types/node":"^22.0.0","@types/react":"^19","@types/react-dom":"^19"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/checkout-sdk_0.1.0_1785123800668_0.3443176385059443","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bob-payments/checkout-sdk","version":"0.1.1","type":"module","license":"UNLICENSED","description":"SDK público do Bob Checkout para checkout embutível, tokenização segura de cartão e criação de pagamento.","repository":{"type":"git","url":"git+https://github.com/BobPayments/bob-payments-checkout.git","directory":"packages/checkout-sdk"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"scripts":{"typecheck":"tsc --noEmit","test:run":"vitest run"},"exports":{".":"./src/index.tsx","./core":"./src/core.ts","./package.json":"./package.json"},"dependencies":{"@stripe/stripe-js":"^9.12.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"devDependencies":{"@types/node":"^22.0.0","@types/react":"^19","@types/react-dom":"^19","jsdom":"^27.4.0","typescript":"^5","vitest":"^4.0.17"},"_id":"@bob-payments/checkout-sdk@0.1.1","bugs":{"url":"https://github.com/BobPayments/bob-payments-checkout/issues"},"homepage":"https://github.com/BobPayments/bob-payments-checkout#readme","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-PUfHD1Upylm/Euyq1k4g7XCLuaGwKYMBVbH4a9qsZ0f7VdtM13qhcdPjwTmHnl5pNVAWV3z3ndrWlvP5fuvcEw==","shasum":"2426df5d4492ac9df56de9814b56ffe31ecad519","tarball":"https://registry.npmjs.org/@bob-payments/checkout-sdk/-/checkout-sdk-0.1.1.tgz","fileCount":5,"unpackedSize":37281,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDcS2722CFvtVKbxFBfSCkz1s6q+d6aErtg+FpVYMxupwIhANUWXsZfrg5hQV2X1gBiOOn0wEnyYfv2PSBMeNy8ewsU"}]},"_npmUser":{"name":"bob-company","email":"developer@payments.bob.company"},"directories":{},"maintainers":[{"name":"bob-company","email":"developer@payments.bob.company"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/checkout-sdk_0.1.1_1785123897242_0.7752627268852779"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-27T03:43:20.510Z","modified":"2026-07-27T03:44:57.563Z","0.1.0":"2026-07-27T03:43:20.818Z","0.1.1":"2026-07-27T03:44:57.384Z"},"bugs":{"url":"https://github.com/BobPayments/bob-payments-checkout/issues"},"license":"UNLICENSED","homepage":"https://github.com/BobPayments/bob-payments-checkout#readme","repository":{"type":"git","url":"git+https://github.com/BobPayments/bob-payments-checkout.git","directory":"packages/checkout-sdk"},"description":"SDK público do Bob Checkout para checkout embutível, tokenização segura de cartão e criação de pagamento.","maintainers":[{"name":"bob-company","email":"developer@payments.bob.company"}],"readme":"# @bob-payments/checkout-sdk\n\nSDK publico do Bob Checkout para checkout embutivel. O SDK carrega a sessao,\nmonta o campo seguro do cartao e cria o pagamento no Bob.\n\n```tsx\nimport { BobCheckout } from '@bob-payments/checkout-sdk';\n\nexport function Checkout({ checkoutToken }: { checkoutToken: string }) {\n  return (\n    <BobCheckout\n      sessionToken={checkoutToken}\n      onSuccess={(payment) => {\n        window.location.href = `/orders/${payment.id}`;\n      }}\n      onError={(error) => {\n        console.error(error.message);\n      }}\n    />\n  );\n}\n```\n\nPara clientes com tela propria:\n\n```ts\nimport { BobCheckout } from '@bob-payments/checkout-sdk';\n\nconst checkout = await BobCheckout.create({\n  sessionToken: checkoutToken,\n});\n\nawait checkout.mountCard('#bob-card');\n\nawait checkout.pay({\n  paymentMethod: 'credit_card',\n  customer: {\n    name: 'Maria Silva',\n    document: '52998224725',\n    email: 'maria@example.com',\n  },\n  card: {\n    holderName: 'Maria Silva',\n    installments: 1,\n    returnUrl: 'https://loja.example.com/checkout/3ds-return',\n  },\n});\n```\n\nO payload enviado ao Bob usa `card.token`; dados sensiveis de cartao nao passam\npelos sistemas do lojista.\n","readmeFilename":"README.md"}