Fawry
The full list of request body parameters and possible outcomes can be found here.
#
Request a Fawry paymentRequestFawrySource fawrySource = RequestFawrySource.builder() .description() .customerEmail() .customerMobile() .products(Collections.singletonList( RequestFawrySource.Product.builder().build() )) .build();
PaymentRequest request = PaymentRequest.fawry(fawrySource, Currency.EGP, 10L);
PaymentResponse response = api.paymentsClient().requestAsync(request).get();
#
Approve a Fawry paymentThis functionality only works in sandbox environment.
api.fawryClient().approve(paymentReference).get();
#
Expire a Fawry paymentThis functionality only works in sandbox environment.
api.fawryClient().cancel(paymentReference).get();