【问题标题】:squareup how to use test nonces to save card on file that will be declinedsquareup 如何使用测试随机数将卡片保存在将被拒绝的文件中
【发布时间】:2021-02-16 11:15:32
【问题描述】:

在文档here 我可以看到有测试随机数。 我想创建在收费时将被拒绝的存档卡。 我已经尝试了所有这些随机数,但似乎都没有。

我做错了什么?

以下两个请求均失败。


   squareClient.customersApi.createCustomerCard(
            createCustomer,
            CreateCustomerCardRequest.Builder("cnon:card-nonce-declined").build()
        )
   squareClient.customersApi.createCustomerCard(
            createCustomer,
            CreateCustomerCardRequest.Builder("ccof:customer-card-id-declined").build()
        )
    


【问题讨论】:

    标签: square-connect square


    【解决方案1】:

    没有办法将卡片保存在文件中,以后会在沙盒环境中失败,因为CreateCustomerCard 在设计上会在创建卡片时对其进行授权。所以如果卡要失败了,以后就不能保存失败了。

    【讨论】:

    • 如果他们保存然后取消呢?
    猜你喜欢
    • 1970-01-01
    • 2023-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-15
    • 2018-05-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多