com.safecharge.util.DeviceUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of safecharge-sdk-java Show documentation
Show all versions of safecharge-sdk-java Show documentation
SafeCharge’s REST API SDK for Java provides developer tools for accessing Safecharge's REST API. SafeCharge’s REST API is a simple,
easy to use, secure and stateless API, which enables online merchants and service providers to process consumer payments through SafeCharge’s
payment gateway. The API supports merchants of all levels of PCI certification, from their online and mobile merchant applications, and is
compatible with a large variety of payment options, i.e. payment cards, alternative payment methods, etc.
package com.safecharge.util;
import com.safecharge.model.DeviceDetails;
/**
* Copyright (C) 2007-2020 SafeCharge International Group Limited.
*
* @author Anton Antonov
* @since 25.09.2017 г.
*/
public class DeviceUtils {
private DeviceUtils() {
}
public static DeviceDetails createDeviceDetailsFromParams(String deviceType, String deviceName, String deviceOS, String browser, String ipAddress) {
DeviceDetails deviceDetails = new DeviceDetails();
deviceDetails.setDeviceType(deviceType);
deviceDetails.setDeviceName(deviceName);
deviceDetails.setDeviceOS(deviceOS);
deviceDetails.setBrowser(browser);
deviceDetails.setIpAddress(ipAddress);
return deviceDetails;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy