This wrapper simplifies working with the MultiSafepay API and lets you integrate MultiSafepay in your Java application.
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!
You will need a MultiSafepay account. Consider a test account first.
Clone this git repository.
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.
Create an issue on this repository or email [email protected]
If you spot mistakes or want to help improve this wrapper, feel free to create a pull request.
See MultiSafepay Docs – API reference.