Comments (1)
For iOS, I would go with this flow...
- Let user put items into "shopping bag"
- Later in checkout process display "Pay with ο£Ώ". This is usually very last step
- 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)
- 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)
- Changing or Editing Shipping info in Apple Pay trigger processing and results in "Abort Error"
- Expo EAS plugin
- Apple Pay paymentRequest.show() doesn't resolve HOT 3
- Build error in react-native 0.70 HOT 3
- Support Google Play's billing? How to write code if it supports me
- App crashes on apple pay modal close HOT 2
- Couldn't update total price
- update ReactNativePaymentsModule.java for android
- iOS: undefined paymentToken on real device.
- Error: AbortError on paymentRequest.show() HOT 4
- react native payments on procide to pay details.shippingOptions
- Apple Pay says Payment not Processed when using Node 18 HOT 1
- Apple pay is not available in "app HOT 1
- Apple pay is not available in "app" HOT 2
- RN iOS application crashes when using ApplePay to place an order HOT 1
- I have fully rewritten this library, using same concepts, can we add an reference to the readme for other users? HOT 6
- unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead
- From where you import getUpdatedDetailsForShippingOption or getUpdatedDetailsForShippingAddress this function
- π Braintree React Native SDK π
- π΄Active forks & alternatives π΄
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-payments.