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

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

package com.safecharge.request;

import com.safecharge.request.builder.SafechargeCCBuilder;
import com.safecharge.util.Constants;
import com.safecharge.util.ValidChecksum;
import com.safecharge.util.ValidationUtils;

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

* Request to perform a payment using a credit/debit card. *

* The request must contain only one of the three: *

    *
  1. CardData(such as card number, cardholder name, CVV, expiration date) *
  2. User Payment Option ID of previouslt used credit/debit card, which info is stored by the SafeCharge's system. *
  3. Temporary card token. *
* * @author Nikola Dichev * @see Payment3DRequest * @see PaymentAPMRequest * @since 2/15/2017 */ @ValidChecksum(orderMappingName = Constants.ChecksumOrderMapping.API_GENERIC_CHECKSUM_MAPPING) public class PaymentCCRequest extends SafechargeCCRequest { public static Builder builder() { return new Builder(); } @Override public String toString() { final StringBuilder sb = new StringBuilder("PaymentCCRequest{"); sb.append(super.toString()); sb.append('}'); return sb.toString(); } public static class Builder extends SafechargeCCBuilder { /** * Builds the request. * * @return {@link SafechargeRequest} object build from the params set by this builder */ @Override public SafechargeBaseRequest build() { PaymentCCRequest request = new PaymentCCRequest(); return ValidationUtils.validate(super.build(request)); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy