x

State not returned on error in Web API

When you send an api request to the Register Web api with the state set the value doens't seem to be returned when there is an error (ie declined card or canceled payment). It works fine if the card is proccessed and a transaction is returned though. Is there a way we can get that information passed back to us even on error? Without it we have no way of aligning the error to an active ticket in our system. 

1,080 Views
Message 1 of 4
Report
3 REPLIES 3
Square

Hi squarebean - are you referring to the com.squareup.register.RESULT_REQUEST_METADATA parameter? This should be returned in both success and error cases. If you are not seeing it on error, we'll pass this feedback to our engineering team to investigate.

1,056 Views
Message 2 of 4
Report

No we are using the method descripbed here https://docs.connect.squareup.com/articles/register-api-ios. 

 

state string

Optional. If you provide this value, it's included in Square Register's response to your app after the payment completes. Use this parameter to associate any helpful state information with the payment request.

1,046 Views
Message 3 of 4
Report
Square

Thank you for clarifying. We are not able to reproduce the issue on our end, so are reaching out to you via email to get more details. Thank you!

1,036 Views
Message 4 of 4
Report