To setup PayPal payment you will need a merchant account which you have to create on the website of PayPal self.
Go to Periphery > Credit Card settings.
This is where payment types for credit card can be enabled and configured. Start by creating a new clearing house configuration.
There is a predefined configuration ‘PayPal’ available. Select this and most of the settings will be filled out for you.
You can print values of variables by putting them between ||-signs. Usable variables here are:
The required fields are preset but you will have to change certain values:
Find a complete list of all optional fields here: HTML Variables for PayPal Payments Standard
The order identification is the variable that will be used to check what order was proceed. In this case that will be
In flow you can set the flow how a payment is checked and processed. Returned variables from PayPal can be used by wrapping your variable name in
% symbols (eg.
%title%). The proposed flow provides a minimal check: if
payment_status returned and equals
Completed then the payment was successful, otherwise it will return that it was unmatched.
The subscriber is still unauthenticated when he's about to make the payment. We need to assure the subscriber can reach the payment page (temporarily) but nothing else. A simple and quick solution would be to add the following entry:
0.0.0.0/0:443 to the walled-garden. This way the PayPal site will be accessible and don't forgot to limit the time (3-5 minutes).
You can test your configuration by doing an actual payment but it's also possible to test these settings using PayPals sandbox, a live test environment.
You will have to create a sandbox account, even if you already have a regular PayPal account. To use PayPal Sandbox you need to adjust the configuration slightly:
urlin your configuration with
businesswith your new sandbox account.
When you submit these settings and you are back under Periphery > Credit card settings you click the first button under action, next to the Paypal clearing house option. Here you can enter whatever value you want and you can test if the payment takes place by using your sandbox account.
If a payment has been denied. Check the Payment Log under Tools > Logging > Payment log for:
Combined with IPN return variables.