How to make the app functional after downloading and importing it:
- Adapt the endpoint for the PayPal Connector
The PayPal Connector currently points at PayPal’s test system ‘Sandbox’. This system is a virtual testing environment that simulates the live PayPal production environment.
This means that you can simulate transactions and payments, without using real live accounts and money.
Adapt the PayPal Connector endpoint to the system that you want to use (simulation or live). You can find the respective URLs here: https://developer.paypal.com/api/rest/requests/
- Create a PayPal Business or Sandbox Account
To include PayPal as a payment option, you need to create a PayPal business account. Or, for testing purposes, you can also create a PayPal Sandbox account, which allows you to test your payment process without using real money: https://developer.paypal.com/tools/sandbox/accounts/
- Obtain a Client ID and Secret
Login to your PayPal account and select the menu item ‘My Apps & Credentials’. Choose if you want to use the Sandbox or the Live system and create a new App.
Then, you can see the created Client ID and the corresponding Secret (credentials). You need the Client ID and Secret in the next step.
- Load your Client ID and Secret
For authentication in the PayPal Connector and for loading the PayPal buttons, you need your Client ID and Secret from your PayPal account.
The server-side Business Object function ‘PayPal_Module’ – ‘getPayPalVendorCredentials’ loads these credentials into the App, so that the Connector can use them.
We recommend to store the credentials in a backend system (e.g., a SQL database) and fetch them here in this Business Object function via Connector call.
- Adapt the Products in the Product List
In the server-side Business Object function ‘PayPal_App’ – ‘getAvailableProducts’, we load some dummy products into the app and bind them to the list.
You can load your own products here, just make sure that you also adapt the data type ‘PayPal_Item_Struct’ so that it matches your product structure.
- Assign the Role ‘PayPal_Permissions’
To be able to execute the PayPal connector, your Simplifier user needs the role ‘PayPal_Permissions’.
Note that if the PayPal Connector points to the Sandbox URL, you as the vendor as well as the customer cannot use your ‘normal’ PayPal accounts. Vendor and customer both need a Sandbox account in this case to test the payment process, since Sandbox and Live system are separate environments.