I am getting a string returned to my application from my gateway processor. The string contents are:
ssl_result=0
ssl_result_message=APPROVAL
ssl_txn_id=9621F9AD-E49E-4003-91BD-5C1B08569959
ssl_approval_code=N54032
ssl_cvv2_response=
ssl_avs_response=
ssl_invoice_number=123-ABC
ssl_amount=5.00
ssl_card_number=00*******0000
ssl_exp_date=0000
ssl_email=test@test.com
The ssl_result_message could be either "APPROVAL" or "DECLINED". I need to be able to parse the string to determine what the message was and if approved, what the ssl_approval_code is. The problem I am having is these values will be dynamic.