寻找完整的 ActiveMerchant AuthorizeNetCimGateway 文档以了解选项要求
我正在将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论