mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[AC-2239] fix automatic tax errors (#3834)
* Ensuring customer has address before enabling automatic tax * StripeController fixes * Refactored automatic tax logic to use customer's automatic tax values * Downgraded refund error in paypal controller to be a warning * Resolved broken test after downgrading error to warning * Resolved broken paypal unit tests on windows machines --------- Co-authored-by: Lotus Scott <148992878+lscottbw@users.noreply.github.com>
This commit is contained in:
@ -487,7 +487,7 @@ public class PayPalControllerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task PostIpn_Refunded_MissingParentTransaction_BadRequest()
|
||||
public async Task PostIpn_Refunded_MissingParentTransaction_Ok()
|
||||
{
|
||||
var logger = _testOutputHelper.BuildLoggerFor<PayPalController>();
|
||||
|
||||
@ -518,9 +518,9 @@ public class PayPalControllerTests
|
||||
|
||||
var result = await controller.PostIpn();
|
||||
|
||||
HasStatusCode(result, 400);
|
||||
HasStatusCode(result, 200);
|
||||
|
||||
LoggedError(logger, "PayPal IPN (2PK15573S8089712Y): Could not find parent transaction");
|
||||
LoggedWarning(logger, "PayPal IPN (2PK15573S8089712Y): Could not find parent transaction");
|
||||
|
||||
await _transactionRepository.DidNotReceiveWithAnyArgs().ReplaceAsync(Arg.Any<Transaction>());
|
||||
|
||||
|
Reference in New Issue
Block a user