diff --git a/android/src/main/java/jp/pokepay/pokepay_sdk/PokepaySdkPlugin.java b/android/src/main/java/jp/pokepay/pokepay_sdk/PokepaySdkPlugin.java index 1c9cce1..9164bb8 100644 --- a/android/src/main/java/jp/pokepay/pokepay_sdk/PokepaySdkPlugin.java +++ b/android/src/main/java/jp/pokepay/pokepay_sdk/PokepaySdkPlugin.java @@ -1005,11 +1005,7 @@ private TaskResult invokeMethod() { String organizationCode = call.argument("organizationCode"); String userId = call.argument("userId"); - CreateCreditCard req = new CreateCreditCard(userId, token, organizationCode); - - if(isCardholderNameSpecified != null){ - req.isCardholderNameSpecified(isCardholderNameSpecified); - } + CreateCreditCard req = new CreateCreditCard(userId, token, organizationCode).isCardholderNameSpecified(isCardholderNameSpecified); Pokepay.setEnv(env); CreditCard res = req.send(accessToken);