Our application keeps getting Authorization error: GENERIC_DECLINE

We have contacted the issuing bank (from which the card is being charged from) and the bank is telling us the Square is trying to authorize a payment WITHOUT any amount?

We’ve tried with multiple cards and keeping getting Authorization error: GENERIC_DECLINE as the error. Our issuing Bank is saying that it is NOT an issue on their side but rather on the Square side and that Square is NOT sending the payment amount.

We are 100% sending the payment amount via the v2/payments API

curl_setopt($ch, CURLOPT_POSTFIELDS, “{\n"idempotency_key": "$theToken",\n"amount_money": {\n"amount": $thePrice,\n"currency": "USD"\n},\n"source_id":"$orderID"\n}”);

I see there was a solution for this and now it’s deleted. Were you able to figure out what the issue was? :slightly_smiling_face:

Hey Bryan! Yes, I was! The issue was the locationId. Since we were making an API request on behalf of our Merchants access token we needed to pass their locationId in the Cash App checkout dialog. This makes sense as it’s their location that is processing the payment. Appreciate you following up!

Glad to hear you figured it out. :slightly_smiling_face:

1 Like