@Override public void deleteCreditCard(CreditCard creditCard) throws IOException { try { boolean success = new WsVaultLocator().getwsVaultSoap().DELETE_DATA( emptyStringIfNull(merchantId), emptyStringIfNull(merchantKey), emptyStringIfNull(creditCard.getProviderUniqueId()) ); if(!success) throw new LocalizedIOException(accessor, "MerchantServicesProvider.deleteCreditCard.notSuccessful"); } catch(ServiceException err) { throw new IOException(err); } catch(RemoteException err) { throw new IOException(err); } }
@Override public boolean canStoreCreditCards() throws IOException { try { return new WsVaultLocator().getwsVaultSoap().VERIFY_SERVICE( emptyStringIfNull(merchantId), emptyStringIfNull(merchantKey) ); } catch(ServiceException err) { throw new LocalizedIOException(err, accessor, "MerchantServicesProvider.canStoreCreditCards.ioException"); } catch(RemoteException err) { throw new LocalizedIOException(err, accessor, "MerchantServicesProvider.canStoreCreditCards.ioException"); } }
emptyStringIfNull(merchantId), emptyStringIfNull(merchantKey), emptyStringIfNull(creditCard.getCardNumber()), emptyStringIfNull(creditCard.getExpirationDateMMYY()) ).get_any();
emptyStringIfNull(merchantId), emptyStringIfNull(merchantKey), emptyStringIfNull(creditCard.getProviderUniqueId()), emptyStringIfNull(CreditCard.getExpirationDateMMYY(expirationMonth, expirationYear)) ).get_any(); Node table1 = results[results.length-1].getFirstChild().getFirstChild();
emptyStringIfNull(merchantId), emptyStringIfNull(merchantKey), emptyStringIfNull(creditCard.getProviderUniqueId()), emptyStringIfNull(cardNumber), emptyStringIfNull(CreditCard.getExpirationDateMMYY(expirationMonth, expirationYear)) ).get_any(); Node table1 = results[results.length-1].getFirstChild().getFirstChild();
emptyStringIfNull(merchantId), emptyStringIfNull(merchantKey), emptyStringIfNull(transaction.getAuthorizationResult().getProviderUniqueId()) ).get_any();
capture ? new WsVaultBankcardLocator().getwsVaultBankcardSoap().VAULT_BANKCARD_SALE( emptyStringIfNull(merchantId), emptyStringIfNull(merchantKey), emptyStringIfNull(CreditCard.getFullName(creditCard.getFirstName(), creditCard.getLastName())), emptyStringIfNull(getStreetAddress(creditCard.getStreetAddress1(), creditCard.getStreetAddress2())), emptyStringIfNull(creditCard.getCity()), emptyStringIfNull(creditCard.getState()), emptyStringIfNull(creditCard.getPostalCode()), emptyStringIfNull(creditCard.getCountryCode()), emptyStringIfNull(creditCard.getEmail()), emptyStringIfNull(creditCard.getProviderUniqueId()), emptyStringIfNull(null), emptyStringIfNull(transactionRequest.getAmount().toString()), emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()), emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()), emptyStringIfNull(transactionRequest.getOrderNumber()), emptyStringIfNull(creditCard.getPhone()), emptyStringIfNull(creditCard.getFax()), emptyStringIfNull(CreditCard.getFullName(transactionRequest.getShippingFirstName(), transactionRequest.getShippingLastName())), emptyStringIfNull(getStreetAddress(transactionRequest.getShippingStreetAddress1(), transactionRequest.getShippingStreetAddress2())), emptyStringIfNull(transactionRequest.getShippingCity()), emptyStringIfNull(transactionRequest.getShippingState()), emptyStringIfNull(transactionRequest.getShippingPostalCode()), emptyStringIfNull(transactionRequest.getShippingCountryCode()) ).get_any() : new WsVaultBankcardLocator().getwsVaultBankcardSoap().VAULT_BANKCARD_AUTHONLY( emptyStringIfNull(merchantId),