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

com.logicommerce.sdk.services.PaymentService Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.logicommerce.sdk.services;

import java.util.List;
import com.logicommerce.sdk.models.RequestParams;
import com.logicommerce.sdk.models.order.Order;
import com.logicommerce.sdk.models.payment.Payment;
import com.logicommerce.sdk.models.payment.PaymentToken;
import com.logicommerce.sdk.models.payment.PaymentValidateResponse;

/**
 * 

PaymentService interface.

* * @author Logicommerce * @since 1.0.16 */ public interface PaymentService extends PluginService { /** *

getPayment.

* * @param order a {@link com.logicommerce.sdk.models.order.Order} object * @param transactionId a {@link java.lang.String} object * @return a {@link com.logicommerce.sdk.models.payment.Payment} object * @throws com.logicommerce.sdk.services.PluginServiceException if any. */ Payment getPayment(Order order, String transactionId) throws PluginServiceException; /** *

validate.

* * @param order a {@link com.logicommerce.sdk.models.order.Order} object * @param requestParams a {@link com.logicommerce.sdk.models.RequestParams} object * @return a {@link com.logicommerce.sdk.models.payment.PaymentValidateResponse} object * @throws com.logicommerce.sdk.services.PluginServiceException if any. */ PaymentValidateResponse validate(Order order, RequestParams requestParams) throws PluginServiceException; /** *

getPaymentTokens.

* * @return a {@link java.util.List} object */ List getPaymentTokens(); /** *

deletePaymentToken.

* * @param token a {@link java.lang.String} object */ void deletePaymentToken(String token); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy