Generate Square nonce for specific amount

116 Views Asked by At

I'm developing a mobile app using Flutter for UI and Square to manage payments.

I read that a nonce is a one-time token representing the costumer credit card information.

I'm wondering if there is a way to generate a nonce only for a specific amount. If the server when completing the payment asks for more the payment won't complete.

The issue I'm afraid of is that the costumers thinks he payed for a certain amount but the server can ask for any amount, I think limiting the amount when creating the nonce would be a very cool security feature.

How the nonce works isn't very clear to me so maybe this isn't possible for some reason.

How can I avoid issues such the one from above?

0

There are 0 best solutions below