Ask me anything!

A simpler billing experience is coming soon. Learn more here.

Testing API Purchase Transaction with a Decline/Failed credit card

Comments

1 comment

  • Avatar
    Joe Reiff

    Hi Fernando,

    We already responded via email, but we thought we would include our response here as well in case others come across the same question:

    The short answer is you should be prepared to receive both. 

    For the most part, an array of error messages will be returned if the error occurs before Spreedly has a chance to send the request to the gateway. Otherwise, the transaction JSON response (`state`) and transcript should be used to determine the status of a transaction. 

    0
    Comment actions Permalink

Please sign in to leave a comment.