Skip to content

A Java wrapper for the MultiSafepay payments API. Provides support for all payment methods, Pay After Delivery and Fast Checkout.

License

Notifications You must be signed in to change notification settings

MultiSafepay/Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java wrapper for the MultiSafepay API

This wrapper simplifies working with the MultiSafepay API and lets you integrate MultiSafepay in your Java application.

About MultiSafepay

MultiSafepay is a Dutch payment services provider, which takes care of contracts, processing transactions, and collecting payments for a range of local and international payment methods. Start selling online today and manage all your transactions in one place!

Requirements

You will need a MultiSafepay account. Consider a test account first.

Installation

Clone this git repository.

Usage

Set up the client for testing:

MultiSafepayClient.init(true, "YOUR_API_KEY");

Create an order:

Order order = new Order();
order.setRedirect(
    '1234', 
    "Product description",
    1000, 
    "EUR", 
    new PaymentOptions(
        "https://example.com/notify",
        "https://example.com/success",
        "https://example.com/failed"
        )
    );

JsonObject jsonResponse = MultiSafepayClient.createOrder(order);
System.out.println(jsonResponse);

String payment_url = MultiSafepayClient.getPaymenUrl(jsonResponse);
System.out.println(payment_url);

See more examples.

Support

Create an issue on this repository or email [email protected]

Mistakes and improvements

If you spot mistakes or want to help improve this wrapper, feel free to create a pull request.

API reference

See MultiSafepay Docs – API reference.

Licence

MIT Licence

About

A Java wrapper for the MultiSafepay payments API. Provides support for all payment methods, Pay After Delivery and Fast Checkout.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages