All Projects → tnguyen14 → web-payments-example

tnguyen14 / web-payments-example

Licence: other
Demo for Payment Request API and Apple Pay for the Web API

Programming Languages

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

Projects that are alternatives of or similar to web-payments-example

grav-plugin-proposal
Sales Proposal Plugin for Grav
Stars: ✭ 16 (-48.39%)
Mutual labels:  apple-pay, payment-request
Tinkoff-Acquiring-SDK-Flutter
Flutter Tinkoff Acquiring SDK is a simple way to integrate payments into your mobile application.
Stars: ✭ 42 (+35.48%)
Mutual labels:  apple-pay
react-elements-netlify-serverless
Digital Wallet payments with React Stripe Elements and Netlify Functions
Stars: ✭ 21 (-32.26%)
Mutual labels:  apple-pay
svelte-stripe-js
Everything you need to add Stripe Elements to your Svelte project
Stars: ✭ 139 (+348.39%)
Mutual labels:  apple-pay
tinkoff-asdk-ios
Tinkoff Acquiring SDK for iOS
Stars: ✭ 36 (+16.13%)
Mutual labels:  apple-pay
apple-pay
This library is used to decode tokens for Apple Pay.
Stars: ✭ 38 (+22.58%)
Mutual labels:  apple-pay
solidus paypal braintree
💳Integrate Solidus with Braintree, including PayPal and Apple Pay support
Stars: ✭ 30 (-3.23%)
Mutual labels:  apple-pay
ApplePayJSSample
A sample implementation of Apple Pay JS using ASP.NET Core
Stars: ✭ 22 (-29.03%)
Mutual labels:  apple-pay
cybersource-android-sdk
The CyberSource InApp SDK enables developers to simply and securely incorporate mobile payments into their Android applications.
Stars: ✭ 25 (-19.35%)
Mutual labels:  payment-request
secure-payment-confirmation
Explainer for Secure Payment Confirmation
Stars: ✭ 64 (+106.45%)
Mutual labels:  payment-request
appr-wrapper
Payment Request wrapper for Apple Pay JS
Stars: ✭ 150 (+383.87%)
Mutual labels:  payment-request
react-payment-request-api
High order component to drive Payment Request widget
Stars: ✭ 58 (+87.1%)
Mutual labels:  payment-request
cybersource-sdk-java
Java SDK for CyberSource Simple Order API
Stars: ✭ 44 (+41.94%)
Mutual labels:  payment-request
interledger-payment-app-example
An implementation of the Interledger spec through an Android's Payment App
Stars: ✭ 26 (-16.13%)
Mutual labels:  payment-request

Web Payments Example

Demo for Payment Request API and Apple Pay for the Web https://lab.tridnguyen.com/web-payments-example/.

To see Payment Request API, use Chrome on Android version 53 or later.

To see Apple Payfor the Web in action, use Safari on iOS 10 or macOS Sierra (please note that you'd need to have Apple Pay enabled on your phone, and "Allow Payments on Mac" enabled for desktop use).

Set up Apple Pay merchant account

If you'd like to have your own instance of this running, follow the steps below:

  1. Create an Apple Developer Account (at https://developer.apple.com)

  2. Create a Merchant ID (see Configuring Your Environment)

    To generate the Payment Processing Certificate on your own, run the following steps

    openssl ecparam -out private.key -name prime256v1 -genkey
    openssl req -new -sha256 -key private.key -nodes -out request.csr
  3. In the "Apple Pay on the Web" section, "Add Domain" under "Merchant Domains" and follow the instruction to verify your domain ownership

  4. Under "Apple Pay Merchant Identity", click on "Create Certificate".

  5. In order to create the Certificate Signing Request(CSR), run the following command (make sure you have openssl installed).

    openssl req -sha256 -nodes -newkey rsa:2048 -keyout applepaytls.key -out applepaytls.csr
  6. Upload the applepaytls.csr file to the File Upload in the Apple Developer portal.

  7. Store the applepaytls.key file to the server/resources directory.

  8. With the merchant_id.cer file received from Apple, run the following command to generate a .pem file.

    openssl x509 -inform der -in merchant_id.cer -out applepaytls.pem
  9. Store the applepaytls.pem file to the server/resources directory.

  10. Start the application

    npm start
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].