diff --git a/README.md b/README.md index 8c3bf5c..662d95c 100644 --- a/README.md +++ b/README.md @@ -296,22 +296,41 @@ export default function App() { ## Testing with the Sandbox -To get the sandbox token and ctx, follow the steps: +This sample code uses PHP to generate the token and timestamp but you can +use the same approach in any server-side environment which will protect +the secret key. 1. Go to the Developer Dashboard. 2. Under Plans click on the "Get Checkout Code" button. 3. Go to the Sandbox tab. -4. Copy the `sandbox_token` and `timestamp` values. +4. Copy the code to generate the `sandbox_token` and `timestamp` values and +output them for the Javascript to use. + +Example: + +```PHP +', + ctx: '' }, }; ```