Java ArsenalPay API SDK is software development kit for fast simple and seamless integration your java application with processing server of ArsenalPay.
1.0
min 1.6
Official integration guide page
mvn package
for building single jar file with all dependencies.
Copy conf
with properties to the root directory of your project
another you will get ConfigurationLoadingException
- Mobile commerce.
RequestPayment method. Example code for mobile charge:
ApiCommandsFacade apiCommandsFacade = new ApiCommandsFacadeImpl(
new MerchantCredentials("2096", "qwerty")
);
PaymentRequest paymentRequest = new PaymentRequest.MobileBuilder()
.payerId(9140001111L)
.recipientId(123456789L)
.amount(12.5D)
.currency("RUR")
.comment("Java-SDK-Test")
.setTestMode()
.build();
PaymentResponse paymentResponse = apiCommandsFacade.requestPayment(paymentRequest);
See more details in JavaDoc.
CheckPaymentStatus method. Example code:
PaymentStatusResponse paymentStatusResponse = apiCommandsFacade.checkPaymentStatus(
new PaymentStatusRequest(1228221L)
);
// where 1228221 is payment transaction id
See more details in JavaDoc.