谷歌flutter_在Flutter中使用Google Pay Through Stripe接受付款

这篇博客介绍了如何在Flutter应用中利用Google Pay和Stripe实现支付功能,让移动端用户能够方便地进行在线交易。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

谷歌flutter

Google’s Flutter is an excellent platform and I like its capability to build robust hybrid apps the most. Flutter app development services can help entrepreneurs come up with feature-rich apps in a short time. As a Flutter app developer, I keep on exploring the possibilities of integrating innovative features and functionality in Flutter apps.

Google的Flutter是一个出色的平台,我最喜欢其构建健壮的混合应用程序的能力。 Flutter应用程序开发服务可以帮助企业家在短时间内提出功能丰富的应用程序。 作为Flutter应用程序开发人员,我一直在探索在Flutter应用程序中集成创新功能的可能性。

Recently I was searching How to integrate Google Pay using Stripe Payment Gateway in Flutter. I have also checked Stripe Official Documentation For Google Pay. But documentation is not for the Flutter Platform. So I decided to publish an article to integrate Google Pay using Stripe in Flutter.

最近,我在搜索如何使用Flutter中的Stripe Payment Gateway集成Google Pay。 我还检查了Stripe的 Google Pay 官方文档 。 但是文档不适用于Flutter平台。 因此,我决定发表一篇文章,在Flutter中使用Stripe集成Google Pay。

Stripe is the software platform for running an internet bussiness. It’s a suite of payment APIs that powers commerce for online businesses of all sizes.

Stripe是用于运行Internet商务的软件平台。 这是一套支付API,可为各种规模的在线企业提供商务支持。

Use of these platforms in this integration.

在集成中使用这些平台。

  1. Flutter for Front-end Side Development.

    用于前端开发的Flutter

  2. Stripe to use its Payment APIs.

    条纹使用其付款API。

  3. Firebase to deploy Cloud Function for Server-Side Development.

    Firebase部署用于服务器端开发的云功能。

Lets first make a note of the tasks we are going to do :

让我们首先记下我们要完成的任务:

  1. Use Android Studio and Visual Studio Code as an Editor.

    使用Android Studio和Visual Studio代码作为编辑器。
  2. Create a new Flutter Project named as per your choice.

    根据您的选择创建一个新的Flutter项目。
  3. Use a stripe_native plugin.

    使用stripe_native插件。

  4. Create an Account on Stripe. Just Sign up and Sign in, not required other details as we will be using the test API keys.

    Stripe上创建一个帐户。 只需注册并登录,不需要其他详细信息,因为我们将使用测试API密钥。

  5. Create Flutter Project on Firebase Console and Upgrade your Firebase plan to Blaze Plan(Paid Plan). A paid account is the most important one.

    Firebase控制台上创建Flutter Project,并将Firebase计划升级到Blaze Plan(付费计划)。 付费帐户是最重要的帐户。

  6. Setup the Node.js environment in your system.

    在系统中设置Node .js环境。

  7. Setup Firebase CLI to deploy Firebase Cloud Functions.

    设置Firebase CLI以部署Firebase Cloud Functions。

Source 资源

Create a Flutter Project in your Android Studio or VS Code.

在Android Studio或VS Code中创建Flutter项目。

使用stripe_native插件 (Use stripe_native Plugin)

Add this plugin into pubspec.yaml file.

将此插件添加到pubspec.yaml文件中。

dependencies:
  flutter:
    sdk: flutter




  cupertino_icons: ^0.1.3
  stripe_native: ^1.2.3

Please run the following command

请运行以下命令

flutter pub get

扑吧获得

在条带上创建帐户 (Create Account on Stripe)

Go to Stripe Website then perform Sign up and Sign In.

转到Stripe网站,然后执行“注册并登录”。

After Creating Stripe Account Go to Dashboard.

创建Stripe Account后,转到Dashboard

Image for post
Source 资源

Click on Get your test API keys. It gives you two API keys (Publishable Key, Secret key).

单击获取您的测试API密钥。 它为您提供了两个API密钥(可发布密钥,秘密密钥)。

Note : I have followed coding standards into this so when there is requirement to show details of particular word then its written belo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值