Setting Up Online Payment and your Merchant Provider on a Tendenci Site

This help file is intended for site administrators and developers only.

We currently support the following payment gateways (as I'm typing this help file today on March 22, 2012; edited 10/16/14):

Once you have a merchant account ready, it's time to configure your site to accept online payment by following the steps below for the payment gateway you've chosen. For security reason, the sensitive information is stored in the /var/www/site_name/.env which requires server access (call Schipul support if you need any assistance).

Setup for Authorize.net:

1) Add or change the value of 2 setting variables in the conf/local_settings.py:

        MERCHANT_LOGIN

        MERCHANT_TXN_KEY

2) Update the site setting Merchant Account http://www.example.com/settings/site/global/#id_merchantaccount to:

        authorizenet

In the Authorize.net merchant interface set up your response URLs like this (you don't need defaults)

authorizenet-response-receipt-urls-tendenci.png

Thus the resulting URL will be one of these TWO possible URLs and must exactly match the canonical URL from your site settings.

http://www.example.org/payments/authorizenet/thankyou/

and if using https (which you should be!) it is:

https://www.example.org/payments/authorizenet/thankyou/

And again, check your site settings and see this help file for more on Tendenci site settings. Jump to the Site URL portion. If your site settings Site URL does not match (e.g. https://www.example.org/ with the protocol) it will not work with Authorize.net. If you are getting error 14, this is most likely the problem.

3) Configure your merchant account on authorize.net:

        A) Log in, then go to Account --> Settings. Add a Response/Receipt URL.

            http://www.example.com/payments/authorizenet/thankyou/       

        B) If silent post is enabled, specify the silent post url.

            http://www.example.com/payments/authorizenet/silent-post/       

Setup for First Data e4:

1) Log in to your First Data e4 account. Create a Receipt page if it doesn't already exists.

    - Select option 1 or 2.

    - Enter Receipt Link: http://www.example.com/payments/firstdatae4/thankyou/

    - Enter Silent Post URL: http://www.example.com/payments/firstdatae4/silent-post/

1) Set up keys in conf/local_settings.py:

        MERCHANT_LOGIN = 'your merchant login'

        MERCHANT_TXN_KEY = 'your transaction key

        FIRSTDATA_RESPONSE_KEY = 'your response key'

2) Update the site setting Merchant Account http://www.example.com/settings/site/global/#id_merchantaccount according to:

        firstdatae4      

(If you're on this page but setting up for a T4 site, the Receipt and Silent Post links are:

Receipt Link: http://www.example.com/en/invoices/payments/firstdatae4/thankyou.asp
Silent Post Link: http://www.example.com/en/invoices/payments/firstdatae4/silentpost.asp

)

 

Setup for PayPal PayFlowLink:

1) Add or change the value of 2 setting variables in the conf/local_settings.py:

        PAYPAL_MERCHANT_LOGIN

        PAYFLOWLINK_PARTNER

2) Update the site setting Merchant Account http://www.example.com/settings/site/global/#id_merchantaccount to:

        paypal

3) Configure your merchant account on PayPal:

        Log in to your account, then go to Service Settings -> Set Up

        A) Under Payment Confirmation, next to Show confirmation page, select On a PayPal hosted page.

        B) Enter Return URL:

            http://www.example.com/payments/payflowlink/thankyou/

        C) Set Return URL Method to: Post

        D) Under Silent Post for Data Transfer,

            Set Use Silent Post to: Yes

            Enter Silent Post URL to:

            http://www.example.com/payments/payflowlink/silentpost/                   

 

Setup for PayPal Payment Standard:

1) Add or change the value of 2 setting variables in the conf/local_settings.py:

        PAYPAL_MERCHANT_LOGIN    -- this is your account primary email address.

        MERCHANT_TXN_KEY   -- this is the value of Identity Token which can be found under Profile> Profile and Settings > My Selling Tools > Website preferences

 

2) Update the site setting Merchant Account http://www.example.com/settings/site/global/#id_merchantaccount to:

        paypal

3) Configure your PayPal account:

        Log in to your account

 

        A) Click the Profile link at the top of your page. Then click Profile and Settings then Selling Preferences or My selling tools.

Next to the Website preferences line, click Update. This opens up a new page.

             1) Turn on Auto Return

             2) Enter Return URL:

                  http://www.example.com/payments/paypal/thankyou/

             3) Turn on Payment Data Transfer

              Copy the Identity token  to be added to MERCHANT_TXN_KEY in your conf/local_settings.py:

 

        B) Click back into My selling tools. Next to the Instant payment notifications line, click Update. This opens up a new page.

              Turn on IPN.

              Enter the Notification URL:

               http://www.example.com/payments/paypal/ipn/

   
 

            

    

Setup for stripe:

1) Add or change the value of 2 setting variables in the conf/local_settings.py:

        STRIPE_SECRET_KEY

        STRIPE_PUBLISHABLE_KEY

2) Update the site setting Merchant Account http://www.example.com/settings/site/global/#id_merchantaccount to:

        stripe

3) Set up SSL on the site.  Although your site does not store credit card info and the credit card data transmission is over stripe's secure post url. SSL is still required for a couple of reasons.

 

After everything is set, you can test it by making a general payment on your site via http://www.example.com/py/.