我@response
收到了 Sage Pay 的回复:
VPSProtocol=2.23 Status=OK StatusDetail=Server transaction registered successfully. VPSTxId={C9B14A59-1EB7-4A56-A4B1-29B84BE4861B} SecurityKey=VGGPR12XC1 NextURL=https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={C9B14A59-1EB7-4A56-A4B1-XXXXXXXXXXXXX}
如何将其拆分为以下哈希:
@response['VPSProtocol'] = "2.23"
@response['Status'] = "OK"
....
?
(响应中的参数是换行符分开的\r\n
)