How would one extract values from a string

I get this returned from a payment gateway.

“PAYGATE_ID=10011072130&PAY_REQUEST_ID=EEB7B865-AD12-D31E-5357-A384A9A9E306&REFERENCE=pgtest_123456789&CHECKSUM=cf0d24ff09a154159c5cb41810e72b3e”

How would I set these values in server connect as (* taking the string above an split them into 4 values)

PAYGATE_ID=10011072130
PAY_REQUEST_ID=EEB7B865-AD12-D31E-5357-A384A9A9E306
REFERENCE=pgtest_123456789
CHECKSUM=cf0d24ff09a154159c5cb41810e72b3e

Community Page
Last updated: