question

Sukhbir Singh avatar image
Sukhbir Singh asked Sukhbir Singh commented

Not Able to create order using Order connector

Hi,


We are using OrderConnector to create a new Order by using the following code:

mOrderConnector.createOrder(new Order());

It was working fine earlier but now every time we are getting permission related exception, while we have allowed the ORDER_W permission from the dashboard.

Please have a look of following logs:


021-01-29 21:07:24.755 4900-4987/com.micamp.wavitpayments.dev W/System.err: com.clover.sdk.v1.ForbiddenException: status code: 403 Permission denied

2021-01-29 21:07:24.755 4900-4987/com.micamp.wavitpayments.dev W/System.err: at com.clover.sdk.v1.ServiceConnector.throwOnFailure(ServiceConnector.java:325)

2021-01-29 21:07:24.755 4900-4987/com.micamp.wavitpayments.dev W/System.err: at com.clover.sdk.v1.ServiceConnector.execute(ServiceConnector.java:260)

2021-01-29 21:07:24.755 4900-4987/com.micamp.wavitpayments.dev W/System.err: at com.clover.sdk.v3.order.OrderV31Connector.createOrder(OrderV31Connector.java:233)


Please suggest if we have required to change anything.

OrdersClover Android SDKClover MiniPrint
10 |2000

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 Deactivated answered Sukhbir Singh commented

What environment? What is your app id?

2 comments
10 |2000

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

David Marginian avatar image David Marginian ♦♦ commented ·

The app must be uninstalled and then reinstalled from the Clover dashboard after a permissions change.

0 Likes 0 ·
Sukhbir Singh avatar image Sukhbir Singh David Marginian ♦♦ commented ·

Yes, Now it's working. Thanks.

0 Likes 0 ·

Welcome to the
Clover Developer Community