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

com.iyzipay.model.ThreedsPayment Maven / Gradle / Ivy

There is a newer version: 2.0.133
Show newest version
package com.iyzipay.model;

import com.iyzipay.HttpClient;
import com.iyzipay.Options;
import com.iyzipay.request.CreateThreedsPaymentRequest;
import com.iyzipay.request.RetrievePaymentRequest;

public class ThreedsPayment extends PaymentResource {

    public static ThreedsPayment create(CreateThreedsPaymentRequest request, Options options) {
        return HttpClient.create().post(options.getBaseUrl() + "/payment/3dsecure/auth",
                getHttpProxy(options),
                getHttpHeaders(request, options),
                request,
                ThreedsPayment.class);
    }

    public static ThreedsPayment retrieve(RetrievePaymentRequest request, Options options) {
        return HttpClient.create().post(options.getBaseUrl() + "/payment/detail",
                getHttpProxy(options),
                getHttpHeaders(request, options),
                request,
                ThreedsPayment.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy