This library allows you, as a Verotel merchant to easily perform payments on the Verotel platform (https://www.verotel.com) in a Java or Kotlin environment.
FlexPay is a protocol that facilitates these payments.
Full FlexPay documentation can be found in the Control Center
This library makes it easier to use this protocol:
This package is hosted in the Maven central repository
Gradle:
implementation("com.verotel:flexpay4j:2.2.0")
Maven:
<dependency>
<groupId>com.verotel</groupId>
<artifactId>flexpay4j</artifactId>
<version>2.2.0</version>
</dependency>
val brand = Brand.YOURSAFE_DIRECT
val brand = Brand.fromMerchantId("9804000000000100")
val flexPayClient = FlexPayClient(
websiteId = 685478,
signatureKey = "d6dToIj2d6YJ1PX2D1W9",
brand = brand
)
val purchaseUrl = flexPayClient.purchaseBuilder()
.withAmount("14".toBigDecimal(), SaleCurrency.EUR)
.withDescription("test description")
.withPaymentMethod(PaymentMethod.CC)
.build()
- Parameter
backURL
has been renamed tosuccessURL
, along with the corresponding methods:- Simply change calls of
.withBackURL(...)
to the new.withSuccessURL(...)
- Simply change calls of