寻找完整的 ActiveMerchant AuthorizeNetCimGateway 文档以了解选项要求

发布于 2024-12-03 17:28:42 字数 994 浏览 2 评论 0原文

我正在将 ActiveMerchant 集成到一个项目中,但由于缺少选项参数的文档,我一次又一次感到困惑。以下面为例,我在哪里可以找到有关 : payment 哈希或 : payment_profile 哈希应采用何种形式/格式的信息。我在这里缺少什么?

create_customer_payment_profile(options)
Creates a new customer payment profile for an existing customer profile.

Options
:customer_profile_id — The Customer Profile ID of the customer the payment profile will be added to. (REQUIRED)
:payment_profile — A hash containing the elements of the new payment profile (REQUIRED)
Payment Profile
:payment — A hash containing information on payment. Either :credit_card or :bank_account (REQUIRED)

我在某人的博客上发现了以下内容,我想知道如何从 ActiveMerchant 上稀疏的文档中推断出所有这些内容。另外,文档中的任何地方都没有提到 bill_to,并且下面似乎不完整:

@profile = {:customer_profile_id => self.user.customer_cim_id,
            :payment_profile => {:bill_to => self.address,
                                 :payment => {:credit_card => CreditCard.new(self.credit_card)}
                                 }

I am integrating ActiveMerchant in a project, and am mystified over and over again by the lack of documentation for the options parameter. Taking the following as an example, where do I locate information for what form/format the :payment hash or :payment_profile hash should take. What am I missing here?

create_customer_payment_profile(options)
Creates a new customer payment profile for an existing customer profile.

Options
:customer_profile_id — The Customer Profile ID of the customer the payment profile will be added to. (REQUIRED)
:payment_profile — A hash containing the elements of the new payment profile (REQUIRED)
Payment Profile
:payment — A hash containing information on payment. Either :credit_card or :bank_account (REQUIRED)

I found the following on someone's blog, and I wonder how I would have been able to infer all of this from the sparse docs on ActiveMerchant. Plus the bill_to isn't even mentioned anywhere in the docs, and seems incomplete below:

@profile = {:customer_profile_id => self.user.customer_cim_id,
            :payment_profile => {:bill_to => self.address,
                                 :payment => {:credit_card => CreditCard.new(self.credit_card)}
                                 }

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文