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

io.github.moudjames23.paycard4j.Application Maven / Gradle / Ivy

Go to download

Paycard4j est une bibliothèque Java conçue pour faciliter l'intégration de l'API de paiement Paycard dans des applications java

The newest version!
package io.github.moudjames23.paycard4j;

import io.github.moudjames23.paycard4j.enums.PaymentMethod;
import io.github.moudjames23.paycard4j.models.requests.CreatePaymentRequest;
import io.github.moudjames23.paycard4j.paycard.Paycard;

import java.io.IOException;

public class Application {
    public static void main(String[] args) throws IOException {

        Paycard paycard = new Paycard("xxxxxxx");

        CreatePaymentRequest paymentRequest = CreatePaymentRequest.builder()
                .amount(50000)
                .paymentMethod(PaymentMethod.PAYCARD)
                .callbackUrl("http://www.monsite.com/api/payement/status")
                .description("Commande 23")
                .build();

       paycard.createPayment(paymentRequest);



    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy