Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
/ banklink-java-sdk Public archive

Java library for Banklinks

License

Notifications You must be signed in to change notification settings

BitWeb/banklink-java-sdk

Repository files navigation

Build Status codecov

Banklink Java SDK

Java library for Banklinks. Supported is payment requests and authentications.

Usage

Protocol protocol = new iPizzaProtocol(
    pem_formatted_public_key,
    pem_formatted_private_key,
    new Vendor(
        "uid42",
        "Test Test",
        "EE411010002050618003"
    )
);

protocol.setTestMode(true);
Banklink seb = new Seb(protocol);
PaymentRequest paymentRequest = seb.prepareRequest(new PaymentRequestParams("2", 0.01, "BitWeb test", "123", "https://requestb.in/18d2oau1", "https://requestb.in/18d2oau1"));

... and response handling

PaymentResponse response = (PaymentResponse) seb.handleResponse(post_request_params);