1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05: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
}
});