question

Ajmal M A avatar image
Ajmal M A asked Ajmal M A commented

App doesn't have required permission When adding a payment to Order

When I try to add a payment to created order the following error occures.

com.clover.sdk.v1.ForbiddenException: App doesn't have required permission
     at com.clover.sdk.v1.ServiceConnector.throwOnFailure(ServiceConnector.java:278)
     at com.clover.sdk.v1.ServiceConnector.execute(ServiceConnector.java:213)
     at com.clover.sdk.v3.order.OrderConnector.addPayment(OrderConnector.java:406)

Please help me to solve the problem.

Orders
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

jim-patel avatar image
jim-patel answered Ajmal M A commented

Only Clover apps are able to apply a payment using the Android API.

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.

Ajmal M A avatar image Ajmal M A commented ·

So from my app, I cant able to create a order that is already paid? right?

0 Likes 0 ·
sam avatar image sam commented ·

Not directly from the android sdk, but you could use the REST API discussed here.

0 Likes 0 ·

Welcome to the
Clover Developer Community