PayPal Express Checkout

SmithCart > Payment Gateways

 

PayPal Express Checkout gives you the ability to accept payment by either credit card or from the PayPal account of your customer. During checkout, the customer is redirected to the secure PayPal site to complete the payment information. The customer is then returned to your store to complete the remainder of the checkout process.

Contents



Getting Started

To get started, you will first need a PayPal account. If you don't have one, you can go to https://www.paypal.com/us/signup/account to sign up. After this is done, follow the steps below.

 



Obtain API Credentials

To use the PayPal API, you must have API credentials that identify you as a PayPal business account holder authorized to perform various API operations.

Although you can use either an API signature or a certificate for credentials, PayPal recommends you use a signature.

Creating an API Signature

You must establish credentials to use the PayPal API; typically, you create an API signature.

You must have a PayPal business account.

An API signature is a credential that consists of an API User Name along with an associated password and signature, all of which are assigned by PayPal.

To create an API signature

  1. Log into PayPal and click Profile.

  1. Click Request API Credentials from the Account Information section.

  1. In the Option 1 - PayPal API section, click Set up PayPal API credentials and permissions.

 

  1. Click View API Signature.

  1. The next page will display your API Username, API Password, and Signature. Make a note of these as you will need to enter this information under the Gateway setup.

  1. To complete the process, click Done.

[up to contents]



Payment Gateway Configuration

To configure your Payment Gateway, you only need to do 2 things; navigate to the Payment Setup and enter your Payment Gateway credentials.

First, navigate to the Payment Setup section of the module:

Select the PayPal Express Checkout option from the Payment Gateway dropdown:

The following fields will be displayed:

Enter your Payment Gateway Credentials:

  • User Name: The API Username obtained in the previous step.
  • Password: The API Password obtained in the previous step.
  • Signature: The Signature obtained in the previous step.

Save the settings

[up to contents]



web.config File Configuration

To process a transaction with the PayPal Express Checkout payment gateway option the following needs to be added to the web.config Windows Communication Foundation (WCF) ServiceModel configuration section:

 
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <!--PayPal Express-->
        <binding name="PayPalAPIAASoapBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    
    <client>
    <!--PayPal Express-->
      
    <!--Test Endpoint-->
      <!--<endpoint address="https://api-3t.sandbox.paypal.com/2.0/" binding="basicHttpBinding" bindingConfiguration="PayPalAPIAASoapBinding" contract="PayPalExpress.PayPalAPIAAInterface" name="PayPalAPI" />-->
      
    <!--Live Endpoint-->
      <endpoint address="https://api-3t.paypal.com/2.0/" binding="basicHttpBinding" bindingConfiguration="PayPalAPIAASoapBinding" contract="PayPalExpress.PayPalAPIAAInterface" name="PayPalAPIAA" />
    </client>
  </system.serviceModel>

[up to contents]