使用存储的卡信息创建贝宝计费协议(保险库)
Creating paypal billing agreement using stored card information (vault)
我成功创建了 PayPal billing agreements
,通过提供信用卡详细信息(即信用卡号、到期日等),使用 credit_card
作为支付选项。
但当我尝试使用存储卡(卡令牌)创建协议时,问题就来了。我试图在 fundingInstrument
中设置 CreditCardToken
对象
String creditCardId = customerCreditCardRepo.findOneByCustomerIdAndDefaultCard(customerId, 1).getCardId();
CreditCardToken creditCardToken = new CreditCardToken();
creditCardToken.setCreditCardId(creditCardId);
fundingInstrument.setCreditCardToken(creditCardToken);
但我收到以下错误:
response-code: 400 details: name: VALIDATION_ERROR message: Invalid request - see details details: [ErrorDetails(field=payer, issue=Funding Instrument Details are missing or Funding instrument not supported. Only credit-card is supported., purchaseUnitReferenceId=null, code=null)] debug-id: 2d6eff7aa27e3 information-link: https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR
明确表示只有Only credit-card is supported
。有什么办法可以不用客户输入卡号就可以随便找回卡号吗
结算协议不再支持 Vaulted 信用卡。他们要求在 API 电话中提交信用卡。
无法从保管的交易中检索完整的信用卡号。对于这种情况,您可能希望在设置结算协议时提示客户提供完整的银行卡详细信息。
我成功创建了 PayPal billing agreements
,通过提供信用卡详细信息(即信用卡号、到期日等),使用 credit_card
作为支付选项。
但当我尝试使用存储卡(卡令牌)创建协议时,问题就来了。我试图在 fundingInstrument
CreditCardToken
对象
String creditCardId = customerCreditCardRepo.findOneByCustomerIdAndDefaultCard(customerId, 1).getCardId();
CreditCardToken creditCardToken = new CreditCardToken();
creditCardToken.setCreditCardId(creditCardId);
fundingInstrument.setCreditCardToken(creditCardToken);
但我收到以下错误:
response-code: 400 details: name: VALIDATION_ERROR message: Invalid request - see details details: [ErrorDetails(field=payer, issue=Funding Instrument Details are missing or Funding instrument not supported. Only credit-card is supported., purchaseUnitReferenceId=null, code=null)] debug-id: 2d6eff7aa27e3 information-link: https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR
明确表示只有Only credit-card is supported
。有什么办法可以不用客户输入卡号就可以随便找回卡号吗
结算协议不再支持 Vaulted 信用卡。他们要求在 API 电话中提交信用卡。
无法从保管的交易中检索完整的信用卡号。对于这种情况,您可能希望在设置结算协议时提示客户提供完整的银行卡详细信息。