{"_id":"@acmepayments/fraud-shield","_rev":"1-4e8b1dcd026879b19b768212f4384de7","name":"@acmepayments/fraud-shield","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@acmepayments/fraud-shield","version":"1.0.0","type":"commonjs","main":"./index.umd.js","module":"./index.mjs","typings":"./index.d.ts","exports":{".":{"import":"./index.mjs","require":"./index.umd.js"}},"_id":"@acmepayments/fraud-shield@1.0.0","gitHead":"62da7382cbec30e496d9eccbcbb9b6c82cbb609a","description":"ACME Fraud Shield is your key defense against bad actors when it comes to protecting your ticketing and events-based business from fraud. ACME Payments utilizes best-in-class technology and decisions on over 150 data signals in real-time to ensure that yo","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-1SNpARw9yK3OTWAe8TSq6kSZTDdE9uV9xlAW3dcmi4DA5cfuMkIahKtOUChhdsh1ZZBaSV0w6VFQWc4Z/sEmYg==","shasum":"0c5a30af69d8492bf32bce85ffc15a8086ff4279","tarball":"https://registry.npmjs.org/@acmepayments/fraud-shield/-/fraud-shield-1.0.0.tgz","fileCount":30,"unpackedSize":1141174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxVCIOhT+I8RQPdXpHb2OEUuRFxDGrvn1E0quXTThnNAiEA6bZBmP+wCAWpPgV0bTW/LisjfomR7MJJIhcPDgu40Og="}]},"_npmUser":{"name":"aldo_acmeticketing","email":"aldo@acmeticketing.com"},"directories":{},"maintainers":[{"name":"aldo_acmeticketing","email":"aldo@acmeticketing.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fraud-shield_1.0.0_1707154651734_0.0854591887773597"},"_hasShrinkwrap":false},"1.0.1":{"name":"@acmepayments/fraud-shield","version":"1.0.1","type":"commonjs","main":"./index.umd.js","module":"./index.mjs","typings":"./index.d.ts","exports":{".":{"import":"./index.mjs","require":"./index.umd.js"}},"_id":"@acmepayments/fraud-shield@1.0.1","gitHead":"38519afbdb4b24a0c2c490d5d1ceabfbe6b9a28a","description":"ACME Fraud Shield is your key defense against bad actors when it comes to protecting your ticketing and events-based business from fraud. ACME Payments utilizes best-in-class technology and decisions on over 150 data signals in real-time to ensure that yo","_nodeVersion":"20.9.0","_npmVersion":"10.5.2","dist":{"integrity":"sha512-QE+xk5ilM/nFMRJNzG8Q2/UdMqUPdrecv0xWD+ccwszi0mt3jQD7hJ+1xX9ks18cDOWMWGDQkufPT+SgVsDn0Q==","shasum":"ccfef991fbe3f0a58c7172c4753b60e70c5458b9","tarball":"https://registry.npmjs.org/@acmepayments/fraud-shield/-/fraud-shield-1.0.1.tgz","fileCount":31,"unpackedSize":549018,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/dvFhpHey+UpJ5Ii7loWxBoHiQmTT6WUt4tg7TCmEjAiEAxFrbWOCE5+hrM60bJAG0I7tAj6mTJR11aXyZTTJzAQ0="}]},"_npmUser":{"name":"aldo_acmeticketing","email":"aldo@acmeticketing.com"},"directories":{},"maintainers":[{"name":"aldo_acmeticketing","email":"aldo@acmeticketing.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fraud-shield_1.0.1_1714004479451_0.08775055134912857"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-05T17:37:31.643Z","1.0.0":"2024-02-05T17:37:31.964Z","modified":"2024-04-25T00:21:19.870Z","1.0.1":"2024-04-25T00:21:19.682Z"},"maintainers":[{"name":"aldo_acmeticketing","email":"aldo@acmeticketing.com"}],"description":"ACME Fraud Shield is your key defense against bad actors when it comes to protecting your ticketing and events-based business from fraud. ACME Payments utilizes best-in-class technology and decisions on over 150 data signals in real-time to ensure that yo","readme":"# ACME Fraud Shield JavaScript SDK\n\nACME Fraud Shield is your key defense against bad actors when it comes to protecting your ticketing and events-based business from fraud. ACME Payments utilizes best-in-class technology and decisions on over 150 data signals in real-time to ensure that your customers have a safe and easy checkout experience. Shift your transactional risk liability and protect your online transactions today.\n\nACME Seller account required for API key access — get started today at sales@acmepayments.com.  \n\n## Installation\n\n### ES Module\n\n- Intended for use with modern bundlers like webpack.\n- This is the recommended approach and will provide the best developer experience.\n\n```\nnpm install @acmepayments/fraud-shield\n```\n\n### UMD\n\nUMD builds can be used directly in the browser via a `<script>` tag.\nManually add the `index.umd.js` script tag to the `<head>` of your site.\n\n```html\n<!-- Somewhere in your site's <head> -->\n<script src=\"https://unpkg.com/@acmepayments/fraud-shield@1.0.1/index.umd.js\" async></script>\n```\n\n## Usage (ES Module)\n\n> All of the examples also apply to the UMD version but instead of importing our library as an ES Module it will be available under the global `ACME` object.\n\n```js\nconst acmeFraudShield = window.ACME.ACMEFraudShield.create({\n  mid: 'your_mid', // Use your provided merchant identification number (MID)\n  publishableKey: 'your_publishable_key', // Use your provided publishable\n});\n```\n\n## Handle Decisioning Data Session\n\nRequired data fields to properly decision.  Insufficient data may cause improper consumer identification or cause unnecessary friction in the transaction, forcing the user to return and retry.\n\n\n```ts\nimport { ACMEFraudShield } from '@acmepayments/fraud-shield';\n\nconst acmeFraudShield = ACMEFraudShield.create({\n  mid: 'your_mid',\n  publishableKey: 'your_publishable_key',\n});\n\ntry {\n  const result = await acmeFraudShield.handle3DSSession({\n    amount: '', // string, required\n    externalId: '', // string, optional\n    billingAddress1: '', // string, optional\n    billingAddress2: '', // string, optional\n    billingCity: '', // string, optional\n    billingState: '', // string, optional\n    billingCountryCode: 840, // ISO 3166-1 numeric, optional\n    billingFirstName: '', // string, required\n    billingLastName: '', // string, required\n    billingPostalCode: '', // string, required\n    billingPhone: '', // string, optional\n    cardExpMonth: '', // string, required\n    cardExpYear: '', // string, required\n    cardNumber: '', // string, required\n    email: '', // string, required\n\n    // This allows you to pass a custom container for the stepup iframe, it will default to `document.body`\n    // container: {\n    //   selector: () => document.querySelector('...')\n    // }\n  });\n} catch (error) {\n  // handle error\n}\n```\n","readmeFilename":"README.md"}