
$ openssl rsa -pubout -in sandbox_private.pem -out sandbox_public.pem $ openssl genrsa -out sandbox_private.pem 2048 At the command line of a linux computer enter these commands.Method 2 - Create pem files from Linux command line Repeat steps above for files private.pem and public.pem.Copy and Paste all the Private Key text into sandbox_public.pem.Create file on local PC called sandbox_public.pem.(The web page above does not need the Internet. Disconnect your computer from all networks.Two methods are given here to create your pairs of private/public pem files. Strong Customer Authentication (SCA) keys Run test.php to exercise the code in these modes:.Update configure.php with these profileIDs.Create Production account (Personal, if not already created).Create Sandbox account (Personal and Business).Create production private.pem and public.pem files.Create sandbox sandbox_private.pem and sandbox_public.pem files.Strong Customer Authentication (SCA) keys.In this tutorial, they are saved in a separate include file.įor added security, you can ignore all the non-SANDBOX instructions below and restrict your actions to the (safe) Sandbox environment. NEVER save your API keys in the main code files.
Php sandbox how to#
Show example code on how to use the classĪ webserver with PHP, that you create/save new PHP files.Confirm the class has been configured correctly, and is working OK.It has been written for my own use, and as such does not include methods for all TransferWise API calls, but I welcome contributors to add methods to add access to other API calls. As such this is a light-weight module for easy inclusion into bigger projects. This PHP class is completely standalone it does not require composer to bring in other code. TransferWise Simple API PHP Class Introduction
