【问题标题】:Authorize.NET creating a subscription from authorized CC chargeAuthorize.NET 从授权的 CC 费用创建订阅
【发布时间】:2020-01-11 13:58:47
【问题描述】:

我们使用AuthOnlyTransaction 和后来的PriorAuthCaptureTransaction 交易类型来授权和获取订单费用。

我们想添加一个订阅选项,它遵循相同的场景 - 首先授权用户资金,然后捕获。

目前有一种方法可以在 Sanbox GUI 中 Create ARB Subscription from Transaction,Sandbox > Unsettled Transactions > Pick on auth-only transaction > 点击“Create ARB Subscription from Transaction”:

我们如何为来自 API 的授权费用创建 ARB 订阅?

【问题讨论】:

    标签: subscription authorize.net


    【解决方案1】:

    您可以在首次获得授权时使用 CIM API 创建客户资料和付款资料。然后,一旦您准备好创建订阅,您就可以使用这些配置文件 ID 创建它。

    这里是示例 XML:

    <?xml version="1.0" encoding="utf-8"?>
    <ARBCreateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
        <merchantAuthentication>
            <name>API_USERNAME</name>
            <transactionKey>API_TRANSACTION_KEY</transactionKey>
        </merchantAuthentication>
        <refId>Sample</refId>
        <subscription>
            <name>Sample subscription</name>
            <paymentSchedule>
                <interval>
                    <length>1</length>
                    <unit>months</unit>
                </interval>
                <startDate>2020-08-30</startDate>
                <totalOccurrences>12</totalOccurrences>
                <trialOccurrences>1</trialOccurrences>
            </paymentSchedule>
            <amount>10.00</amount>
            <trialAmount>0.00</trialAmount>
            <profile>
                <customerProfileId>12345678</customerProfileId>
                <customerPaymentProfileId>987654342</customerPaymentProfileId>
            </profile>
        </subscription>
    </ARBCreateSubscriptionRequest>
    

    【讨论】:

    • 是的,我们已经在我们的应用程序中这样做了。我正在尝试找出是否有一种方法可以像我们在 GUI 中看到的那样从 AuthOnlyTransaction 执行 ARBCreateSubscriptionRequest
    • 没有办法做到这一点,我不相信他们有任何计划这样做。
    猜你喜欢
    • 1970-01-01
    • 2017-08-23
    • 1970-01-01
    • 2021-08-02
    • 2016-07-11
    • 2010-12-03
    • 2020-11-25
    • 2017-03-03
    • 2019-02-08
    相关资源
    最近更新 更多