All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.safecharge.request.PaymentRequest Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.7.11
Show newest version
package com.safecharge.request;

import com.safecharge.util.Constants;
import com.safecharge.util.ValidChecksum;
import com.safecharge.util.ValidationUtils;

/**
 * Copyright (C) 2007-2019 SafeCharge International Group Limited.
 * 

* Uniform request to perform card transactions(credit or debit) * It supports 3D Secure and alternative payment method transactions. *

* see Payment */ @ValidChecksum(orderMappingName = Constants.ChecksumOrderMapping.API_GENERIC_CHECKSUM_MAPPING) public class PaymentRequest extends Authorize3dAndPaymentRequest { private String isMoto; public String getIsMoto() { return isMoto; } public void setIsMoto(String isMoto) { this.isMoto = isMoto; } public static Builder builder() { return new Builder(); } @Override public String toString() { final StringBuilder sb = new StringBuilder("PaymentRequest{"); sb.append("paymentOption=").append(getPaymentOption()) .append(", isRebilling=").append(getIsRebilling()) .append(", isMoto=").append(getIsMoto()) .append(", autoPayment3D=").append(isAutoPayment3D()); sb.append(super.toString()); sb.append('}'); return sb.toString(); } public static class Builder extends Authorize3dAndPaymentRequest.Builder { private String isMoto; public Builder addIsMoto(String isMoto) { this.isMoto = isMoto; return this; } /** * {@inheritDoc} */ @Override public PaymentRequest build() { PaymentRequest request = new PaymentRequest(); request.setIsMoto(isMoto); return ValidationUtils.validate(super.build(request)); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy