1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 00:33:23 +00:00

Updated PayPal logic to add region custom field (#3127)

This commit is contained in:
Conner Turnbull
2023-07-24 12:48:18 -04:00
committed by GitHub
parent 51ee463a71
commit 4ec765ae19
6 changed files with 29 additions and 11 deletions

View File

@@ -95,12 +95,13 @@ public class ToolsController : Controller
SubmitForSettlement = true,
PayPal = new Braintree.TransactionOptionsPayPalRequest
{
CustomField = $"{btObjIdField}:{btObjId}"
CustomField = $"{btObjIdField}:{btObjId},region:{_globalSettings.BaseServiceUri.CloudRegion}"
}
},
CustomFields = new Dictionary<string, string>
{
[btObjIdField] = btObjId.ToString()
[btObjIdField] = btObjId.ToString(),
["region"] = _globalSettings.BaseServiceUri.CloudRegion
}
});