All Projects → stripe-samples → react-elements-netlify-serverless

stripe-samples / react-elements-netlify-serverless

Licence: MIT license
Digital Wallet payments with React Stripe Elements and Netlify Functions

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to react-elements-netlify-serverless

Checkout Netlify Serverless
Sell products on the Jamstack with Netlify Functions and Stripe Checkout!
Stars: ✭ 58 (+176.19%)
Mutual labels:  ecommerce, stripe, jamstack, stripe-checkout
ecommerce-gatsby
🛒 A Gatsby Ecommerce site with Stripe integration & Netlify Functions
Stars: ✭ 48 (+128.57%)
Mutual labels:  ecommerce, stripe, netlify-functions
svelte-stripe-js
Everything you need to add Stripe Elements to your Svelte project
Stars: ✭ 139 (+561.9%)
Mutual labels:  apple-pay, stripe, google-pay
netlify-lambda-function-example
An example Netlify Lambda function that processes payments with Stripe.
Stars: ✭ 93 (+342.86%)
Mutual labels:  stripe, jamstack, stripe-checkout
Node.js-Stripe-Shopping-Cart
Example integration of Stripe's Checkout API into a Node.js application
Stars: ✭ 93 (+342.86%)
Mutual labels:  shopping-cart, stripe, stripe-checkout
django ecommerce
Scalable Django E-Commerce, perfect to start one new online shop project.
Stars: ✭ 25 (+19.05%)
Mutual labels:  ecommerce, shopping-cart, stripe
Ecommerce Netlify
🛍 A JAMstack Ecommerce Site built with Nuxt and Netlify Functions
Stars: ✭ 1,147 (+5361.9%)
Mutual labels:  stripe, jamstack, stripe-checkout
Snipcart Jekyll
Demo for a Snipcart powered e-commerce store built with Jekyll
Stars: ✭ 48 (+128.57%)
Mutual labels:  ecommerce, shopping-cart, jamstack
Commerce.js
Open source, JS eCommerce SDK for building headless, Jamstack applications. Build custom storefronts, carts, and checkouts in any frontend framework, platform, or device. Integrates with Stripe, Square, PayPal, Paymill and Razorpay with support for 135+ currencies.
Stars: ✭ 112 (+433.33%)
Mutual labels:  ecommerce, stripe, jamstack
Reactjs Shopping Cart
example of shopping cart implemented in react.js and redux.js
Stars: ✭ 153 (+628.57%)
Mutual labels:  ecommerce, shopping-cart
Vendure
A headless GraphQL ecommerce framework for the modern web
Stars: ✭ 2,961 (+14000%)
Mutual labels:  ecommerce, shopping-cart
direct-stripe
Stripe payment button for WordPress websites
Stars: ✭ 12 (-42.86%)
Mutual labels:  stripe, stripe-checkout
Ecommerce React
eCommerce web application using React, Redux, Redux-Saga, Firebase and SASS.
Stars: ✭ 151 (+619.05%)
Mutual labels:  ecommerce, shopping-cart
Stackbit Theme Planty
Planty is an e-commerce ready theme for Stackbit, powered by Snipcart.
Stars: ✭ 151 (+619.05%)
Mutual labels:  ecommerce, jamstack
Microweber
Drag and Drop Website Builder and CMS with E-commerce
Stars: ✭ 2,226 (+10500%)
Mutual labels:  ecommerce, shopping-cart
Vue Shoppingcart
ShoppingCart (Ecommerce) 🛒 Application using Vuejs, + Node.js + Express + MongoDB 🚀🤘
Stars: ✭ 141 (+571.43%)
Mutual labels:  ecommerce, shopping-cart
Shoppingcart
E-Commerce Website Using Java - Spring MVC in Maven - PROJECT IS NOT MAINTAINED
Stars: ✭ 198 (+842.86%)
Mutual labels:  ecommerce, shopping-cart
React Shopping Cart
🛍️ Simple ecommerce cart application built with React Redux
Stars: ✭ 1,808 (+8509.52%)
Mutual labels:  ecommerce, shopping-cart
Cezerin
Cezerin is React and Node.js based eCommerce platform.
Stars: ✭ 1,985 (+9352.38%)
Mutual labels:  ecommerce, shopping-cart
Ecommwar
A leaderboard of the top open-source e-commerce platforms. Promoting the bests for building reliable stores.
Stars: ✭ 203 (+866.67%)
Mutual labels:  ecommerce, shopping-cart

Digital Wallet payments with React Stripe Elements and Netlify Functions

Modern browser APIs, like the Payment Request API, allow you to access payment credentials stored in your customer's digital wallets like Apple Pay, Google Pay, or even Chrome.

Stripe provides a Payment Request Button Element that securely tokenizes these stored credentials for a convenient checkout experience on mobile devices.

Demo

demo gif

Features:

  • Implement shopping cart logic via use-shopping-cart.
  • Collect payment and address information from customers who use Apple Pay, Google Pay, Microsoft Pay, and the Payment Request API.
  • Create Payments in a Netlify Functions.
  • Process Stripe webhook events with Netlify Functions to handle fulfillment.

How to run locally

Prerequisites

Follow the steps below to run locally.

1. Clone and configure the sample

git clone https://github.com/stripe-samples/react-elements-netlify-serverless

Copy the .env.example file into a file named .env:

cp .env.example .env

You will need a Stripe account in order to run the demo. Once you set up your account, go to the Stripe developer dashboard to find your API keys.

REACT_APP_STRIPE_PUBLISHABLE_KEY=<replace-with-your-publishable-key>
STRIPE_SECRET_KEY=<replace-with-your-secret-key>

2. Run Netlify Functions locally:

You can run the Netlify Functions locally with Netlify Dev:

npm install
netlify dev

3. Test the Payment Request Button:

To test the Payment Request Button your page must be served via HTTPS. See the full list of requirements in the docs.

4. [Optional] Run a webhook locally:

If you want to test the using-webhooks integration with a local webhook on your machine, you can use the Stripe CLI to easily spin one up.

Make sure to install the CLI and link your Stripe account.

In a separate tab run

stripe listen --forward-to localhost:8888/.netlify/functions/webhooks

Or use the shorthand npm run webhook

The CLI will print a webhook secret key to the console. Set STRIPE_WEBHOOK_SECRET to this value in your .env file.

You should see events logged in the console where the CLI is running.

When you are ready to create a live webhook endpoint, follow our guide in the docs on configuring a webhook endpoint in the dashboard.

💫 Deploy with Netlify

Deploy to Netlify

Get support

If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.

If you have questions, comments, or need help with code, we're here to help:

Sign up to stay updated with developer news.

Authors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].