From 27cf3bc1dae41f3da826350512358dd9a2d59567 Mon Sep 17 00:00:00 2001 From: Luciano Azevedo Date: Wed, 6 Sep 2017 18:41:08 -0300 Subject: [PATCH] Fix payment method with token --- iugu.net/Lib/PaymentMethod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iugu.net/Lib/PaymentMethod.cs b/iugu.net/Lib/PaymentMethod.cs index 294f7ed..bb671c5 100644 --- a/iugu.net/Lib/PaymentMethod.cs +++ b/iugu.net/Lib/PaymentMethod.cs @@ -74,7 +74,7 @@ public async Task CreateAsync(string description, CreditCard { object paymentmethod = null; - if (data == null && string.IsNullOrEmpty(token)) + if (data == null && !string.IsNullOrEmpty(token)) { paymentmethod = new {