Giter VIP home page Giter VIP logo

paymentshubdevelopers / paymentshub-react-browser-post-api-with-shopping-cart Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 1.3 MB

This repo includes the front-end code for a JavaScript application that uses the React framework to build a shopping cart and embed a payment form using Payments Hub's Browser Post API.

Home Page: https://developer.paymentshub.com/blog/embedded-payments-react-app-shopping-cart

HTML 0.16% CSS 92.89% JavaScript 6.95%
checkout-form checkout-page ecommerce ecommerce-api ecommerce-application ecommerce-website front-end javascript-ecommerce payment payment-api

paymentshub-react-browser-post-api-with-shopping-cart's Introduction

Build a Shopping Cart and Securely Embed Payments in a ReactJS App

This is a JavaScript application that uses the React framework and Node.js to demonstrate an ecommerce shopping cart with an embedded payment solution using Payments Hub's Browser Post API. The code in this repository handles the front-end payment process and adds a shopping cart with a simple payment form to a website. The code that handles back-end part of the payment process is located in a separate repository, allowing each to be deployed separately.

Get Sandbox Credentials

To get started, create a free Payments Hub Developer Portal account. This will allow you to get the sandbox credentials that are required to test the app. Log in to your account to view the official Browser Post API Integration Guide, then contact the Payments Hub Sales Engineering team to get sandbox credentials added to your Developer Portal account.

Follow Along with the Tutorial

When you're ready to start building your app, you can follow along with this tutorial for step-by-step instructions.

Completed App

Your completed ecommerce app will look similar to the following:

Click the "View Details" button to open a product page:

Click the "Shopping Cart" button to open the cart modal, which displays the items in your cart, the total order amount, and allows users to edit the contents of their cart:

Click the "Checkout" button to open a new tab with a checkout form where customers can enter their payment information and submit an order:

paymentshub-react-browser-post-api-with-shopping-cart's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

icodenet

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.