Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/205.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 是否有任何方法或参数从stripe api获取无效/停止卡信息?我从stripe仅获取到期月/年_Java_Android_Api_Stripe Payments - Fatal编程技术网

Java 是否有任何方法或参数从stripe api获取无效/停止卡信息?我从stripe仅获取到期月/年

Java 是否有任何方法或参数从stripe api获取无效/停止卡信息?我从stripe仅获取到期月/年,java,android,api,stripe-payments,Java,Android,Api,Stripe Payments,是否有任何方法或参数从stripe中获取信息,每次我获取客户的卡详细信息以确定该卡是否有效/停止,因为在我的情况下,用户添加了他的卡,然后,在他能够支付后,他停止了他的信用卡 我已经检查了从stripe API获得的用户卡到期详细信息(月/年) ExternalAccountCollection externalAccountCollection = Customer.retrieve(user.getCustomer_id()).getSources().list(cardParams;

是否有任何方法或参数从stripe中获取信息,每次我获取客户的卡详细信息以确定该卡是否有效/停止,因为在我的情况下,用户添加了他的卡,然后,在他能够支付后,他停止了他的信用卡

我已经检查了从stripe API获得的用户卡到期详细信息(月/年)

ExternalAccountCollection externalAccountCollection = 
Customer.retrieve(user.getCustomer_id()).getSources().list(cardParams;

List<ExternalAccount> externalAccounts = new ArrayList<>(); 
externalAccounts.addAll(externalAccountCollection.getData());
Card card = (Card) externalAccounts.get(0);
ExternalAccountCollection ExternalAccountCollection=
Customer.retrieve(user.getCustomer_id()).getSources()列表(cardparms;
List externalAccounts=new ArrayList();
addAll(externalAccountCollection.getData());
卡片=(卡片)外部帐户。获取(0);
我从card对象获得以下参数

addressCity,addressCountry,addressLine1,addressLine1检查;addressLine2,addressState,addressZip,addressZipCheck,availablePayoutMethods品牌国家货币cvcCheck
defaultForCurrency 4个月-年指纹

资金last4姓名收件人状态令牌化方法

当您使用stripe时,您必须在表单中输入卡号、exp日期、cvc,然后对该卡进行stripe检查并返回令牌,如果您要检查卡到期,请使用以下方法:

 Card card = new Card("4242424242424242", 12, 2020, "123");  
 if (!card.validateCard())
     {// Do not continue token creation.
    }
 else
 {
  // generate token
 }

当您使用stripe时,您必须在表单中输入卡号、exp日期、cvc,然后对该卡进行stripe检查并返回令牌,如果您想检查卡的到期日,请使用以下选项:

 Card card = new Card("4242424242424242", 12, 2020, "123");  
 if (!card.validateCard())
     {// Do not continue token creation.
    }
 else
 {
  // generate token
 }