Coder Social home page Coder Social logo

paypal-examples / fastlane-sample-application Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 6.0 69 KB

Sample application for Fastlane

License: Apache License 2.0

JavaScript 30.70% CSS 2.49% C# 15.30% Java 18.41% Python 8.81% HTML 7.05% PHP 9.12% Ruby 8.13%

fastlane-sample-application's Introduction

Fastlane Sample Application

This sample app demonstrates how to integrate with Fastlane using PayPal's REST APIs.

Before You Code

  1. Setup a PayPal Account

    To get started, you'll need a developer, personal, or business account.

    Sign Up or Log In

    You'll then need to visit the Developer Dashboard to obtain credentials and to make sandbox accounts.

  2. Create an Application

    Once you've setup a PayPal account, you'll need to obtain a Client ID and Secret. Create a sandbox application.

How to Run Locally

  1. Clone the repository by running the following command in your terminal:
    git clone https://github.com/paypal-examples/fastlane-sample-application.git
    
  2. Copy the .env.example file from the server folder and paste it into the folder for the server technology you want to use as .env. For example (substitute node for the technology of your choice):
    cd fastlane-sample-application/server
    cp .env.example node/.env
    cd node
    
    To run this application, you will need this folder and the shared folder. The other folders under server can be safely deleted or ignored.
  3. Open the .env file in a text editor and replace the placeholders with the appropriate values.
  4. Follow the instructions in your chosen folder's README.

Client Integrations

Quick Start Integration

Overview

Fastlane Quick Start Integration uses PayPal's pre-built UI for payment collection, thereby allowing you to integrate quickly and easily. The Fastlane Payment Component will automatically render the following:

  1. Customer's selected card and "Change" link which allows users to choose a different saved card or use a new card (for Fastlane members)
  2. Credit card and billing address fields (for Guest users or for Fastlane members who don't have an accepted card in their profile)

Key Features

  • Quickest way to integrate Fastlane
  • Pre-formatted display to show Fastlane members their selected payment method
  • Payment form including billing address for Guest users
  • Data Security: Quick Start Integration is PCI DSS compliant, ensuring that customer payment information is handled securely

Flexible Integration

Overview

Fastlane Flexible Integration allows you to customize and style your payment page according to the look and feel of your website. The Fastlane Card Component renders input fields for Guest users to enter their credit card details, while the Card Selector provides an interface for Fastlane members to choose a different saved card or use a new card. You will be responsible for:

  1. Showing the selected payment method, the Fastlane watermark, and a button to open the Card Selector (for Fastlane members)
  2. Collecting billing address information and rendering the Fastlane Card Component (for Guest users and Fastlane members who don't have an accepted card in their profile)

Key Features

  • Further customize the behavior and experience of your checkout
  • Data Security: Flexible Integration is PCI DSS compliant, ensuring that customer payment information is handled securely

PayPal Codespaces

PayPal codespaces require a client ID and client secret for your app.

Link to codespaces

Open in GitHub Codespaces

Learn more

You can read more about codespaces in the PayPal Developer Docs.

Feedback

fastlane-sample-application's People

Contributors

allen-tong avatar louislowjk avatar

Stargazers

 avatar Vikas Shivananjappa avatar

Watchers

Greg Jopa avatar Michael Durfey avatar Leonardo Maier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.