首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Authorize.NET从授权CC费用创建订阅

Authorize.NET从授权CC费用创建订阅
EN

Stack Overflow用户
提问于 2019-09-10 03:26:25
回答 1查看 79关注 0票数 0

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

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

目前有一种方法可以在Sanbox GUI中选择,沙盒>未结算事务>选择仅限身份验证的事务>单击"Create ARB Create ARB Subscription from Transaction from Transaction":

如何从API中创建授权费用的ARB订阅?

EN

回答 1

Stack Overflow用户

发布于 2019-09-10 03:39:49

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

下面是示例XML:

代码语言:javascript
复制
<?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>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57860141

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档