io.github.moudjames23.paycard4j.Application Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paycard4j Show documentation
Show all versions of paycard4j Show documentation
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);
}
}