express-payment-request-react-native
💸 The companion React Native (iOS/Android/Web) frontend for express-payment-request.
This allows you to accept cross-platform payments using services such as Apple Pay without linking.
🚀 Getting Started
Using yarn
:
yarn add express-payment-request-react-native
✍️ Example
Below, we show that a the client can define the amount to pay via the usePaymentRequest
hook. This requires that your app is wrapped within a PaymentRequestProvider.
;;; { const requestPayment clearPaymentRequest = ; return <TouchableOpacity onPress= > <Text children="Request Payment of $0.02" /> </TouchableOpacity> ;} { return <PaymentRequestProvider uri="https://localhost:3000/payment"> <Button /> </PaymentRequestProvider> ;}