简体   繁体   English

如何在 React Native ios 应用程序(Algorand)中集成加密货币支付

[英]How to integrate cryptocurrency payments in react native ios app (Algorand)

I am using Algorand blockchain for NFT transaction on mobile app.我正在使用 Algorand 区块链在移动应用上进行 NFT 交易。 The app is in react native and on the app I am selling/buying NFT's.该应用程序是本机反应,并且在我正在销售/购买 NFT 的应用程序上。 Apple rejected my app saying that I need to implement in-app purchases.苹果拒绝了我的应用,说我需要实现应用内购买。 How would I go about doing that?我该怎么做呢? How to implement a cryptocurrency payment gateway?如何实现加密货币支付网关? Does apple's in-app purchases support cryptocurrency payments?苹果的应用内购买是否支持加密货币支付?

I can't find any helpful resource to resolve this issue.我找不到任何有用的资源来解决这个问题。

Apple's in-app purchases do not support cryptocurrency payments. Apple 的应用内购买不支持加密货币支付。

However, they do support cryptocurrency cards that are linked to Apple Pay.但是,它们确实支持与 Apple Pay 相关联的加密货币卡。 Lots of these exist, eg Coinbase.其中有很多存在,例如 Coinbase。 There are also rumours that AlgoFi may release one too.也有传言称 AlgoFi 也可能会发布一个。

The payment is converted into fiat before the transaction, so on your app it would be like handling a fiat payment.付款在交易前转换为法币,因此在您的应用程序上就像处理法币付款一样。 You can then theoretically use this fiat to buy $ALGO, and then use that for the transaction.然后,理论上您可以使用该法币购买 $ALGO,然后将其用于交易。 The UX would ultimately look the same for the end user and it would seem like they are using the existing cryptocurrency in their wallet.最终用户的 UX 最终看起来是一样的,看起来他们正在使用钱包中现有的加密货币。 But like a commenter said this is not reliable.但就像评论者说的那样,这并不可靠。

Apple does not allow apps that have any payments outside of their payment system. Apple 不允许应用程序在其支付系统之外进行任何支付。 This means that currently an app cannot write to the blockchain at ALL unless payments and gas are relayed.这意味着目前应用程序根本无法写入区块链,除非支付和gas被中继。 You can work around this by developing an NFT marketplace app that allows users to view their NFTs and explore others, but if they want to do any transactions they are redirected to the mobile website.您可以通过开发 NFT 市场应用程序来解决此问题,该应用程序允许用户查看他们的 NFT 并探索其他人,但如果他们想要进行任何交易,他们将被重定向到移动网站。

So you have three options: trusting that the fiat is successfully taken out of the user's account and buying $ALGO, waiting for the payment to go through which means the transaction may take weeks, or directing to a website for all blockchain transactions.因此,您有三个选择:相信法币已成功从用户账户中取出并购买 $ALGO,等待付款完成,这意味着交易可能需要数周时间,或者指向网站进行所有区块链交易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在现有的 React Native App 中集成原生 ios 摄像头 SDK? - How to integrate native ios camera SDK in existing react native App? 如何将混合应用程序集成到ios本机应用程序中? - how to integrate hybrid app into ios native app? 如何将Unity集成到本机iOS App中? - How to integrate Unity inside native iOS App? 如何将 Crashlytics 与 React Native 应用程序集成 - How to Integrate Crashlytics with React Native app 将 react-native 版本 0.62.2 集成到现有 IOs 应用程序错误 - Integrate react-native version 0.62.2 into existing IOs app error 使用react-native-navigation将React本机应用程序与现有iOS应用程序集成 - integrate react native app using react-native-navigation with existing iOS app 如何集成第三方iOS SDK以响应本机 - How to integrate third-part iOS sdk to react native 如何将Payu本机SDK与iOS和Android应用程序集成 - How to integrate payu native sdk with ios and android app 如何将 Google 标签管理器与 React Native 应用程序集成? - How to integrate Google Tag Manager with React Native app? 尝试将react-native应用程序与现有ios应用程序集成时出现“ _fbBatchedBridge未定义”错误 - “_fbBatchedBridge is undefined” error while trying to integrate a react-native app with an existing ios app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM