在 Android 中使用 Stripe 实现 Sofort(支付网关)需要一些指导 [英] Need some direction to implement Sofort (a payment gateway) using Stripe in Android

查看:34
本文介绍了在 Android 中使用 Stripe 实现 Sofort(支付网关)需要一些指导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Stripe 的帮助下在 Android 中实现 Sofort 支付网关,我需要一些指导.我正在关注 Stripe Doc

I'm implementing Sofort payment gateway in Android by the help of Stripe and I need some direction. I'm following Stripe Doc

我已经成功完成了第 2 步,但我不明白如何使用 第 3 点向源头充电 &网络钩子.是否会有一些后端编码来实现 webhooks?

I've successfully done till Step 2 but I'm not understanding how to go with Point 3 to Charge the Source & webhooks. Will there be some backend coding to implement webhooks?

如果有人已经实施了 Sofort,请发布它.我会很感激的.请我注意这一点.

If someone has already implemented Sofort please post it. I'll be very thankful. Please I need attention on this.

推荐答案

您说得对,您需要在后端执行第 3 步和第 4 步.您可以将源的id"传递给您的后端服务器,并从第 3 步中的示例代码开始:

You are correct that you need to do Steps 3 and 4 on the back end. You would pass the Source's 'id' to your backend server and start with the example code in Step 3:

https://stripe.com/docs/sources/sofort#make-a-charge-request-using-the-source

然后在第 4 步中实现一个 Webhook 端点来侦听更新的事件:

Then in Step 4 you implements a Webhook Endpoint that listens for the updated events:

https://stripe.com/docs/webhooks

这篇关于在 Android 中使用 Stripe 实现 Sofort(支付网关)需要一些指导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆