PayPal Payment Gateway Integration Using PHP

PayPal Payment Gateway Integration Using PHP

PayPal is a payment process system, we will integrate PayPal with websites by using with php.

PayPal integration classification system
PayPal integration classification system included four files as shown below.

constants.php − This file has included API user name, password and signature.

CallerService.php − This file has included PayPal Services, that is employed to decision PayPal services.

confirmation.php − This file has included a form with minimum fields required to make payment process and it’llcome back payment success or failure.

PayPal_entry.php − This page has used to send the user the info to PayPal. It acts as associate adapter between PayPal and user form.

The user has to transfer a PayPal SDK file from here and precise a zipper file. The zip file contains four php files, we do not have to be compelled to amendment any file except constants.php

 

The constants.php file contains code as shown below −

 

The user can declare User Name, password and signature in on top of syntax that area unit placed in constants.php. this can be AN experimental example therefore the last quantity are supplementary to sandbox’s account.

 

If you face any problem then contact with me.

 

Basant Mallick

how to add a Google Translate button on your website

how to add a Google Translate button on your website

Hii, Everyone Today i am going to tell you how to add a Google Translate button on your website.

Step 1:

    Add a <div> element with the id “google_translate_element”: inside  <body> tag

<div id=”google_translate_element”></div>

Step 2:

  Add a Script tag in between <head></head>

    <script type=”text/javascript” src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

 

Step 3:

    also add some javascript code in your webpages.

There are 3 types of button available for the Google Translate button.

   A.  Vertically

<script type=”text/javascript”>
                    function googleTranslateElementInit() {
                   new google.translate.TranslateElement({pageLanguage: ‘en’},                                ‘google_translate_element’);
                                 }
             </script>

 

php developer in delhi

wordpress designer in delhi

  B. Horizontal

 <script type=”text/javascript”>
                    function googleTranslateElementInit() {
                       new google.translate.TranslateElement({pageLanguage: ‘en’, layout:                              google.translate.TranslateElement.InlineLayout.HORIZONTAL}, ‘google_translate_element’);
               }
            </script>

php developer in gurgaon

website designer in laxmi nagar

 

   C.  Dropdown Menu, with no other text:

                  <script type=”text/javascript”>
                         function googleTranslateElementInit() {
                            new google.translate.TranslateElement({pageLanguage: ‘en’, layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, ‘google_translate_element’);
                                 }
                 </script>

wordpress developer in developer in delhi

website designer in delhi

 

And you are ready to translate the content of your page:

Basant Mallick

How do I change website from http to www

How do I change website from http to www

You can follow these 2 Methods for redirect wordpress website from http to www

Method: 1 For Any Website

Step: 1 Go to Cpanel and Click on setting

Step: 2 Now enable Checkbox of hidden files

Step: 3 Refresh your Cpanel and go inside public_html here you see .htcess files you jst replace all available code to below code

 

                              RewriteEngine On

                             RewriteCond %{HTTP_HOST} !^www\. [NC]

                             RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

 

Step: 4   If you don’t have .htaccess files then create a file name with  .htaccess 

          and paste above code and save them

 

Step: 3 Now Refresh Your Website.

                  That’ It.

 

Method: 2 For Any WordPress Website

Step: 1  Go to Settting

Step: 2  General Setting Here You see

               WordPress Address (URL) and Site Address (URL) change http:// to http://www and update                       them

Step: 3 Now Refresh Your Website.

                  That’ It.

Basant Mallick