Mobile Payment SDK - invalidPaymentParameters

Hello!

When attempting to process a cash payment in sandbox mode i’m getting invalidPaymentParameters error

This is the payload passed into the startPayment method

{“amountMoney”: {“amount”: 1819, “currencyCode”: “CAD”}, “locationId”: “L8F6YYEYVZMTQ”, “note”: “Order #298955D0”, “paymentAttemptId”: “141ab0bf-1a51-4397-ad5e-dc67c1866468”, “processingMode”: 0, “referenceId”: “298955d0-8471-4600-b090-ec1b4bb29313”, “teamMemberId”: “TMdYSEd47R6IF2I-”}

This is the error i’m getting: “The PaymentParameters provided were invalid. Check the request details and try the payment again.”

What doesn’t it like? I’m using a sandbox applicationId and teamMemberId and locationIdand also the the accessToken from the sandbox test account oAuth section. Which is sent to the app to authenticate the mobile SDK

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Troubleshoot In-App Payments SDK Problems
Cash App Payments
Take a Payment

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Got it. It’s the CAD rounding to nearest 5 cent issue