Files
FOSSBilling/cspell.json
T
Adam Daley 719d002005 Handle Stripe invoice paid webhook and normalize currencies (#3857)
* Handle Stripe invoice.paid webhook and normalize currencies

* Handle Stripe webhooks asynchronously

* Update cspell.json

* Handle all Stripe webhook event types

* Handle Stripe invoice subscription changes

* Handle Stripe subscription race conditions

* Filter Stripe webhook noise

* Handle Stripe subscription races safely

* Improve Stripe subscription creation

* Add 4/5-year periods and new tx statuses

* Harden Stripe dedup for redirect/webhook races

* Address code review findings in Stripe webhook and IPN handler

- Fix: handlePaymentIntentFailedWebhook and handleSetupIntentFailedWebhook
  now return true so error transactions are kept rather than written and
  immediately deleted; processWebhookEvent guards against overwriting an
  existing STATUS_ERROR with STATUS_PROCESSED
- Fix: processInitialSubscriptionPayment reloads the invoice from the DB
  before the already-paid guard, consistent with applyOneTimePayment and
  narrowing the TOCTOU race window
- Fix: handleInvoicePaymentSucceeded merges two sequential findOne queries
  for the same invoice into one, using the result for both the already-paid
  check and the billing_reason fallback
- Fix: ipn.php extracts $isJsonWebhook at first evaluation, removing the
  duplicate str_contains() expression inside the try block
- Fix: handleSubscriptionCreated casts invoice_id to int, matching all
  other handlers; test assertion updated from string '5' to int 5

* Fix double-processing and over-broad exception catch in Stripe adapter

- handleInvoicePaymentSucceeded: set txn_id to the Stripe invoice ID and
  check for an existing PROCESSING/PROCESSED transaction with that key so
  that when Stripe fires both invoice.payment_succeeded and invoice.paid
  for the same payment, the second event is silently skipped rather than
  double-crediting the client balance or generating a duplicate renewal
  invoice
- processSetupIntent, handleSetupIntentSucceededWebhook: narrow the
  ApiErrorException catch to idempotency_key_in_use only; rethrow all
  other failures (card declined, auth errors, network issues) so they are
  not silently swallowed and processed against an unrelated subscription

* Fix missing Transaction findOne mock in StripeTest fallback test

The handleInvoicePaymentSucceeded dedup check now queries for an
existing Transaction by Stripe invoice ID before processing. The
'falls back to treating unpaid original invoice as initial payment'
test only mocked the Invoice findOne, so the new Transaction query
had no handler and threw NoMatchingExpectationException in CI.

* Fix spellcheck: replace 'Dedup' with 'Duplicate-event' in comment
2026-06-28 20:01:05 +01:00

569 lines
12 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"version": "0.2",
"language": "en",
"words": [
"FOSS",
"huraga",
"FOSSBilling",
"BoxBilling",
"andpavlenko",
"jaapmarcus",
"Plesk",
"Huntr",
"Fabien",
"Potencier",
"Kloxo",
"Ispconfig",
"Interkassa",
"pastable",
"Nyan",
"recognised",
"Dockerized",
"process",
"unsuspended",
"unsuspension",
"admdly",
"Pictogrammers",
"Symfony",
"EMERG",
"exploitability",
"birthdate",
"Birthdate",
"jhurliman",
"jambroseclarke",
"Egulias",
"ICANN",
"failovers",
"Autosize",
"analyse",
"triaging",
"hostable",
"cooldown",
"ONLYDIR",
"sandboxed",
"Segoe",
"minmax",
"grecaptcha",
"resends",
"Parenthesise",
"yagiz",
"overpayments",
"Litepicker",
"servicecustomtest",
"customtest",
"Customtest",
"mysite",
"myhost",
"inversed",
"Autoresponder"
],
"ignoreWords": [
"thead",
"tbody",
"xlink",
"stylesheet",
"endfor",
"currentpage",
"numpages",
"jgrowl",
"endmacro",
"tlds",
"selectboxtld",
"msgid",
"msgstr",
"nplurals",
"tmpname",
"Nottelling",
"ivsize",
"ciphertext",
"followlocation",
"regexed",
"punnycode",
"timeago",
"daysleft",
"bbmd",
"lngh",
"loggedin",
"ERRMODE",
"Servicelicense",
"solusvm",
"Serviceboxbillinglicense",
"mmdb",
"fb_locale",
"BBLANG",
"maintmode",
"endapply",
"helpdesk",
"autorespond",
"Antispam",
"spamchecker",
"Spamchecker",
"recaptcha",
"noborder",
"opengraph",
"precomposed",
"selectivizr",
"cookieconsent",
"signout",
"signup",
"figcaption",
"onclick",
"noscript",
"orderbutton",
"Servicesolusvm",
"UNCANCEL",
"uncancel",
"accesshash",
"userprefix",
"qtys",
"qnty",
"rtable",
"owndomain",
"rtable",
"tria",
"ONHOLD",
"TXTYPE",
"SUBSCR",
"sess",
"sysdate",
"promocode",
"maxuses",
"freesetup",
"nopadding",
"fieldset",
"signups",
"colspan",
"tfoot",
"xlarge",
"selectbox",
"sitekey",
"sitekey",
"autodark",
"noopener",
"datepicker",
"tablist",
"subpages",
"subpage",
"keyup",
"aligncenter",
"tabpanel",
"nowrap",
"Formbuilder",
"datetime",
"nbsp",
"banklink",
"taxname",
"taxrate",
"serie",
"currencylayer",
"custompages",
"middlenav",
"sendgrid",
"endset",
"tcode",
"tstatus",
"labelledby",
"ctitle",
"mtitle",
"servicehosting",
"cpanel",
"Nameserver",
"yourserverdomain",
"optgroup",
"iframe",
"yourdomain",
"uploadframe",
"servicedownloadable",
"servicedomain",
"markitup",
"ckeditor",
"codexplorer",
"Xplorer",
"POSTFIELDS",
"RETURNTRANSFER",
"hideit",
"esubject",
"econtent",
"subvalue",
"subsubkey",
"subsubvalue",
"autoescape",
"endautoescape",
"youparamname",
"publickey",
"dsearch",
"domainsearch",
"domainchecker",
"mobi",
"Servicecustom",
"uglifycss",
"upath",
"pathe",
"tabler",
"apexcharts",
"topnav",
"yourparamvalue",
"userid",
"subkey",
"blockquote",
"floatright",
"copyfields",
"mydomain",
"WHOIS",
"supportticket",
"massmailer",
"kbcategories",
"kbarticle",
"noreferrer",
"ptickets",
"pticket",
"sptm",
"thankyoupage",
"taxupdate",
"Dompdf",
"ctable",
"DATEDIFF",
"cbrepo",
"OODB",
"Inno",
"onsubmit",
"rgba",
"autofocus",
"uniqid",
"Bluepay",
"gettext",
"Centova",
"multisite",
"mcrypt",
"stopforumspam",
"Internetbs",
"binded",
"tada",
"TLDR",
"htdocs",
"LSWS",
"Lighttpd",
"mbstring",
"srcset",
"gugl",
"cclogin",
"CURDATE",
"vatnum",
"caid",
"ECB's",
"onkeyup",
"DYSY",
"uninstallation",
"TRANSLIT",
"taxtitle",
"upgradables",
"sdbname",
"srepo",
"cgroups",
"Prio",
"longblob",
"loginform",
"closethick",
"allowtransparency",
"tabindex",
"Betransferred",
"Firstname",
"Lastname",
"pids",
"lsql",
"rarr",
"randnum",
"classname",
"drepo",
"blud",
"onbeforeunload",
"colorpick",
"clickout",
"typeof",
"signin",
"helpdesks",
"hostnames",
"Askimet",
"urlset",
"lastmod",
"changefreq",
"remoteip",
"timespan",
"yeste",
"Flot",
"messageid",
"eunion",
"Roboto",
"onchange",
"enctype",
"endtrans",
"srch",
"behaviour",
"xaxis",
"yaxis",
"susp",
"cancellation",
"inps",
"ptitle",
"PLUGINNAME",
"nody",
"Perds",
"prms",
"apikey",
"tailwindcss",
"flexbox",
"juoda",
"fb_sid",
"texgt",
"Domaincan",
"datagrid",
"buildmetadata",
"endfilter",
"endembed",
"darkmode",
"Virtualmin",
"strikethrough",
"Nextra",
"Lcharette",
"TFPDF",
"Entrypoints",
"internationalisation",
"PHPSESSID",
"centralalerts",
"phpmailer",
"guzzlehttp",
"Keine",
"webserver",
"localisation",
"subarrays",
"configmod",
"stacktracing",
"Unsuspends",
"unsuspending",
"litespeed",
"nonbinary",
"phonestate",
"linecap",
"linejoin",
"afterend",
"resturl",
"passwordreset",
"coloris",
"selectgroup",
"openbasedir",
"Coudn\\'t",
"updatepassword",
"datatable",
"FileCacheExcption",
"Autoloader",
"autoloader",
"qwertyuiopasdfghjklzxccvbnm",
"QWERTYUIOPASDFGHJKLZXCVBNM",
"subkeys",
"httponly",
"samesite",
"IPCOUNTRY",
"Serviceapikey",
"haspopup",
"oldconfig",
"ordermodel",
"homoglyph",
"TINYINT",
"homoglyph",
"oldconfig",
"ordermodel",
"TINYINT",
"hostings",
"rulesets",
"describedby",
"inputmode",
"maxlength",
"offcanvas",
"newtx",
"pwreset",
"pagebottom",
"forceable",
"phpstan",
"progressbar",
"valuenow",
"valuemin",
"valuemax",
"concat",
"debugbar",
"reqs",
"srcdoc",
"iframes",
"borderless",
"serviceproxmox",
"servicegoogleworkspace",
"servicemulticraft",
"CURLOPT",
"HTTPAUTH",
"CURLAUTH",
"USERPWD",
"COOKIEJAR",
"COOKIEFILE",
"nonaggregated",
"bindto",
"ipify",
"hestiacp",
"intval",
"thisfiledoesnotexist",
"exchangerate",
"currencydata",
"oninput",
"evenodd",
"Retryable",
"FAILONERROR",
"VERIFYPEER",
"VERIFYHOST",
"releasenotes",
"Prins",
"iplookup",
"DDEV",
"Cypress",
"CSRF",
"undismissed",
"unmigrated",
"filp",
"phpunit",
"passthru",
"pwned",
"hcaptcha",
"hCaptcha",
"LEMP",
"Servicemembership",
"Spriter",
"spriter",
"dataurl",
"tomselect",
"zindex",
"CHARSETS",
"diskimage",
"matroska",
"msdownload",
"msvideo",
"msword",
"officedocument",
"openxmlformats",
"presentationml",
"quicktime",
"spreadsheetml",
"wordprocessingml",
"checkip",
"srclink",
"striptags",
"Paidsupport",
"paidsupport",
"Sparkline",
"dicebear",
"miterlimit",
"docroot",
"RPDO",
"tkjh",
"sezam",
"adadzxc",
"randomhash",
"Unidad",
"Rican",
"Djiboutian",
"Kyrgyzstani",
"Kazakhstani",
"ariary",
"nuevo",
"złoty",
"guaraní",
"Leonean",
"Tomé",
"Príncipe",
"Tajikistani",
"somoni",
"Turkmenistani",
"paʻanga",
"bolívar",
"fuerte",
"đồng",
"refetched",
"paygateway",
"invoiceitem",
"uncancels",
"uncanceling",
"oldpw",
"asasd",
"asdasd",
"asdcx",
"getparameters",
"servhosting",
"newservice",
"topsecret",
"testserver",
"Licence",
"mult",
"Jogh",
"bcher",
"EPPCODE",
"rrcpqo",
"testpassword",
"wrongpassword",
"Resellerclub",
"Namecheap",
"Netearthone",
"Resellbiz",
"Resellerid",
"Directadmin",
"Traitable",
"varargs",
"elseifs",
"CLOUDFLARENET",
"baselined",
"endverbatim",
"missingmodule",
"FOUC",
"kbarticles",
"uppercases",
"inpay",
"seti"
],
"ignorePaths": [
"node_modules/**",
"src/themes/*/assets/**",
"src/install/assets/**",
"src/install/sql/**",
"src/modules/*/assets/**",
"composer.json",
"composer.lock",
"build.xml",
"data/**",
"src/data/**",
"phpunit.xml.dist",
"bin/**",
"*.mmdb",
"cspell.json",
"package.json",
"src/library/Registrar/**",
"src/library/Server/Manager/**",
"src/library/Box/**",
"src/library/Payment/Adapter/**",
"src/locale/**",
"src/modules/System/Service.php",
"src/library/Server/Package.php",
"src/modules/Currency/Service.php",
"src/modules/Seo/Service.php",
"src/modules/Orderbutton/templates/client/mod_orderbutton_js.html.twig",
"src/modules/Massmailer/Api/Admin.php",
"src/modules/System/templates/admin/mod_system_settings.html.twig",
"src/vendor",
"src/themes/*/build",
"src/themes/*/node_modules",
"phpstan.neon",
"*.config.js",
".github/**",
".gitignore",
"src/.htaccess",
"phpstan-baseline.neon",
"Dockerfile",
".ddev/**"
]
}