Code Monkey home page Code Monkey logo

Comments (1)

Andreyco avatar Andreyco commented on May 24, 2024

For iOS, I would go with this flow...

  1. Let user put items into "shopping bag"
  2. Later in checkout process display "Pay with ο£Ώ". This is usually very last step
  3. After tapping on that button, pay sheet appears and let's you request all contact information. When pay sheet is submitted, you receive payment response. It might contain payment token or raw payment data (more on this later)
  4. Send the payment token or raw data to server and process.

Step 3. could be a little tricky.
You can process payment thru payment gateway, be it Braintree and/or Stripe.
For those you can use our addons: Braintree addon and Stripe addon
If you do not use any of those addons, Apple Pay returns "raw" payment data. You are supposed to send that raw data to server and decode and process on server.
Purpose of these addons is to process raw data for you and return payment token in exchange. You are not forced to use addons in any way.

*Android flow is bit different, you can learn more somewhere in Google docs

from react-native-payments.

Related Issues (20)

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.