question

Guille Bauza avatar image
Guille Bauza asked Guille Bauza commented

Cannot use OrderConnector pay function

I got the following error: com.clover.sdk.v1.ForbiddenException: status code: 403 App doesn't have required permission

checked the app permision and has the enough to be able to do payments.


         paymentRequest = new PaymentRequest();
            paymentRequest.setTender(cash_tender);
            paymentRequest.setAmount(501L);
            paymentRequest.setTaxAmount(100L);
            paymentRequest.setTipAmount(200L);
            paymentRequest.setOrderId(order.getId());

           return orderConnector.pay(order.getId(), paymentRequest, false, "Some note for payment request...");


Regards.

OrdersPaymentsClover Android SDKClover Flex
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

David Marginian avatar image
David Marginian answered Guille Bauza commented

The pay method is not available to non Clover apps and is stated as such in our docs:

https://clover.github.io/clover-android-sdk/com/clover/sdk/v3/order/OrderV31Connector.html

"Not available to non-Clover apps."


1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

oh, missed that, thank you.

0 Likes 0 ·

Welcome to the
Clover Developer Community