Fawry
The full list of request body parameters and possible outcomes can be found here.
Request a Fawry payment#
RequestFawrySource 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 payment#
This functionality only works in sandbox environment.
api.fawryClient().approve(paymentReference).get();Expire a Fawry payment#
This functionality only works in sandbox environment.
api.fawryClient().cancel(paymentReference).get();