@smorrow123
What is below is YOUR string as returned by the API. It is in the exact order that it is returned because I copied it directly from you.
1|1|1|(TESTMODE) This transaction has been approved.|000000|P|0|8478||39.00|CC|auth_capture|10001253|
I think the first set of three 1’s is the response code and response reason code. (TESTMODE) is x_test_request. Then we have response reason text, x_auth_code, x_avs_code, x_trans_id, x_invoice_num, a | representing the empty description field, then x_amount, x_method, x_type
The 10001253 maybe you have an idea of. It could be numerous things. Maybe customer Id. * or
x_customer_id if you use what your API calls it.
|Sharon|Shatest||123 Somewhere Street|Anywhere|PA|19666|US|||sharon.shatest@test.com
This is all self-explanatory. Name, address and email. * AKA x_first_name, x_last_name etc. if you use what the API calls them. The | after sharons last name is the empty company field.
||||||||||||||5E3E841F808768EA1E68EB5800CD0A48|||||||||||||XXXX0002|American Express|||||||||||||||||422E3EF8AA729B89FC102825EA9FEE6DCCB701D861B4248CF24C12600AB1EAF04371257B7163091AFCD883D57C3F9B83424717C7317BCFD90392CE33E87BFCE2
Here is md5 hash, x_account_number, and x_card_type, followed by the sha512 hash value. *AKA
x_sha2_hash, if you use what the API calls it
Of these you need the values of x_trans_id, x_respone_code, x_auth_code, x_sha_512, and x_method (maybe on x_method, you can probably pass this in your call too) **this is what I mean. If you pass x_method in your API call, then you need a total of 4 values from this array, and the rest can be canned.
In regards to the order, the order will change in the near term future when they remove the md5 hash, but if you create your arrays the way I would suggest doing, it won't affect you.
****EDIT: The above is a breakdown of this, which you posted on 1/21/2019 at 6:31 my time:
1|1|1|(TESTMODE) This transaction has been approved.|000000|P|0|8478||39.00|CC|auth_capture|10001253|Sharon|Shatest||123 Somewhere Street|Anywhere|PA|19666|US|||sharon.shatest@test.com||||||||||||||5E3E841F808768EA1E68EB5800CD0A48|||||||||||||XXXX0002|American Express|||||||||||||||||422E3EF8AA729B89FC102825EA9FEE6DCCB701D861B4248CF24C12600AB1EAF04371257B7163091AFCD883D57C3F9B83424717C7317BCFD90392CE33E87BFCE2
It is a breakdown line by line. Your work has already been done for you, with the exception of tying down what the 10001253 is.