From 499d1354f9d4dbf67cae64daa18ea8fe15dcde4f Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Mon, 31 Jul 2017 13:38:43 +0100 Subject: [PATCH] Some docs clarifications. --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 01db3f3..9b8d423 100644 --- a/README.md +++ b/README.md @@ -536,7 +536,7 @@ $response = $request->send(); // The storageId will be needed by the front end JS library, and also // when submitting the order at the back end. -$response->getStorageId(); +$storageId = $response->getStorageId(); ``` Note that not all payment methods require the use of remove storage. @@ -552,9 +552,11 @@ This is the initialising JavaScript needed in the page: ``` -Where {url} is given by `$response->getJavascriptUrl()` +Where {url} is given by `$response->getJavascriptUrl()`. Note that the storageId will +be encoded into this URL, so does not need to be listed as a parameter anywhere else +in the JavaScript code. -This is where the credit card details need to be copied to: +This is where the credit card details need to be copied to in the front end: ```javascript