diff --git a/src/Mollie.Api/Models/Payment/PaymentMethod.cs b/src/Mollie.Api/Models/Payment/PaymentMethod.cs index f7a5198f..4dbb06db 100644 --- a/src/Mollie.Api/Models/Payment/PaymentMethod.cs +++ b/src/Mollie.Api/Models/Payment/PaymentMethod.cs @@ -32,5 +32,6 @@ public static class PaymentMethod { public const string BancomatPay = "bancomat_pay"; public const string BacsDirectDebit = "bacs"; public const string Alma = "alma"; + public const string GooglePay = "googlepay"; } } diff --git a/tests/Mollie.Tests.Integration/Api/PaymentMethodTests.cs b/tests/Mollie.Tests.Integration/Api/PaymentMethodTests.cs index d010d9d8..7950b0b8 100644 --- a/tests/Mollie.Tests.Integration/Api/PaymentMethodTests.cs +++ b/tests/Mollie.Tests.Integration/Api/PaymentMethodTests.cs @@ -41,11 +41,7 @@ public async Task CanRetrievePaymentMethodListIncludeWallets() { } [DefaultRetryTheory] - [InlineData(PaymentMethod.Bancontact)] - [InlineData(PaymentMethod.BankTransfer)] - [InlineData(PaymentMethod.Belfius)] - [InlineData(PaymentMethod.PayPal)] - [InlineData(PaymentMethod.Kbc)] + [InlineData(PaymentMethod.GooglePay)] public async Task CanRetrieveSinglePaymentMethod(string method) { // When: retrieving a payment method PaymentMethodResponse paymentMethod = await _paymentMethodClient.GetPaymentMethodAsync(method); diff --git a/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs b/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs index b19bea92..97330d35 100644 --- a/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs +++ b/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs @@ -41,6 +41,7 @@ public class PaymentResponseFactoryTests { [InlineData(PaymentMethod.BancomatPay, typeof(PaymentResponse))] [InlineData(PaymentMethod.BacsDirectDebit, typeof(PaymentResponse))] [InlineData(PaymentMethod.Alma, typeof(PaymentResponse))] + [InlineData(PaymentMethod.GooglePay, typeof(PaymentResponse))] [InlineData("UnknownPaymentMethod", typeof(PaymentResponse))] public void Create_CreatesTypeBasedOnPaymentMethod(string paymentMethod, Type expectedType) { // Given