Jump to content
  • Play with PayPal sandbox

    Play with PayPal sandbox

    Estimated reading time: 2 minutes

    This guide helps to set up PayPal in Commerce application of IPS and to test purchases, renewals, commissions and withdrawals safely. The payment method applies not only to Commerce products. You can use it throughout the entire community and in the 3rd party applications. There are some examples:

    The best way to test PayPal payments is to use a so-called "sandbox". This is a test environment of PayPal that does not affect real payments but act as it were. With sandbox, you can test and optimize all screens and messages sent out by PayPal and Invision Community.

    Unfortunately, you cannot use PayPal sandbox if you host on IPS Cloud.

    Prepare PayPal sandbox

    To play with PayPal you need access to Developer Dashboard. If you don't have an account there, click on sign up. For testing you need a PayPal application, at least one business account and one or more personal accounts. Later on when you go live you will need a real app and a real business account on PayPal to be able to receive the payments and create payouts.

    In your Developer Dashboard go to My Apps & Credentials. Pay attention to the switcher between Live and Sandbox.

    paypal-sandbox-switcher.png

    Select Sandbox. You will find a Default Application already created there. Use this application for testing or create your own. Click on the application name to see credentials. Note your Client ID and Secret. You will be asked to enter these credentials in Invision Community later on.

    Choose My Account on the left side menu and scroll down to the section with permissions. You need to enable the permission for Subscriptions.

    paypal-enable-subscriptions.png

    Follow instructions on PayPal to enable it.

    Prepare Invision Community for sandbox

    Now we configure the sandbox in Invision Community that you are going to use test environment and test accounts. You need access to FTP to edit or create a file constants.php. Add the following line to it:

    \define('NEXUS_TEST_GATEWAYS', TRUE);

    From now Invision Community will use sandbox for PayPal payments. Do not forget to remove or uncomment the line later on.

    In your AdminCP go to Commerce -> Settings, choose the tab Payment Methods and click on Create New. Select PayPal in the list of Payment Methods and fill out the form.

    create-payment-paypal.png

    These are Client ID and Secret you have noted from the Default Application in the PayPal Developer Dashboard.

    Play with PayPal accounts

    Sandbox business account will receive the payments from personal accounts. Each time you test the payments use one or different personal accounts from the PayPal sandbox. Then log in with your sandbox business account to check the payments.


    Sonya*
     Share

     Share


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

  • Member Statistics

    309
    Total Members
    4,824
    Most Online
    CorvoC
    Newest Member
    CorvoC
    Joined
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Further information can be found in our Privacy Policy.