使用android从stripe生成银行帐户令牌 [英] generate bank account token using android from stripe

查看:669
本文介绍了使用android从stripe生成银行帐户令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的android项目上集成了条带。我知道你可以使用它生成stripetoken for card。

I am integrating stripe on my android project. I know that you can generate stripetoken for card using this.

Card card = new Card("4242424242424242", "12", "2014", "123");

Stripe stripe = new Stripe("pk_test_6pRNASCoBOKtIshFeQd4XMUh");
stripe.createToken(
    card,
    new TokenCallback() {
        public void onSuccess(Token token) {
            // Send token to your server
        }
        public void onError(Exception error) {
            // Show localized error message
            Toast.makeText(getContext(),
              error.getLocalizedString(getContext()),
              Toast.LENGTH_LONG
            ).show();
        }
    }
)

我正在使用来自github的 stripe-android

I am using their stripe-android library from github

那么如何为BankAccount生成stripeToken?

So How can I generate stripeToken for BankAccount?

我似乎无法在谷歌上找到任何关于此的例子。

I can't seem to find any example on google about this.

谢谢!

推荐答案

没办法让客户直接从银行帐户付款,因此没有API可以使用银行详细信息创建付款令牌LS。也许您正在考虑' Marketplaces '产品,该产品可让您通过银行详细信息设置收件人并进行转帐 to 他们(例如,支付收入)。

There isn't a way to have customers pay directly from a bank account, so there's no API to create a payment token using bank details. Maybe you're thinking of the 'Marketplaces' product which let's you setup recipients with bank details and make transfers to them (eg, to pay out earnings).

这篇关于使用android从stripe生成银行帐户令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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