【发布时间】:2018-03-08 05:31:30
【问题描述】:
我在一个与 BigCommerce 集成的项目中工作,但我在尝试处理付款方式时遇到问题,如果接受使用卡,我需要知道付款方式中使用的卡类型是什么。 这是我请求付款方式列表时响应的 Xml。 GET /api/v2/payments/methods
<?xml version="1.0" encoding="UTF-8"?>
<payment_methods>
<payment_method>
<code>braintree</code>
<name>PayPal powered by Braintree</name>
<test_mode>false</test_mode>
</payment_method>
<payment_method>
<code>braintreepaypal</code>
<name>PayPal powered by Braintree</name>
<test_mode>false</test_mode>
</payment_method>
<payment_method>
<code>testgateway</code>
<name>Test Payment Gateway</name>
<test_mode>true</test_mode>
</payment_method>
<payment_method>
<code>cod</code>
<name>Cash on Delivery</name>
<test_mode>false</test_mode>
</payment_method>
<payment_method>
<code>cheque</code>
<name>Check</name>
<test_mode>false</test_mode>
</payment_method>
<payment_method>
<code>moneyorder</code>
<name>Money Order</name>
<test_mode>false</test_mode>
</payment_method>
<payment_method>
<code>instore</code>
<name>Pay in Store</name>
<test_mode>false</test_mode>
</payment_method>
<payment_method>
<code>bankdeposit</code>
<name>Bank Deposit</name>
<test_mode>false</test_mode>
</payment_method>
</payment_methods>
如果我选择测试支付网关作为支付方式,您必须插入一张卡。我需要知道卡的类型(VI、MC、AMEX ....)
【问题讨论】:
-
取决于卡片生成器。 getcreditcardnumbers.com,第一个数字表示卡片类型。 4 = 签证等。
-
好的,但是你如何获得 card type = 4 y 需要在响应中输入
-
您发布了使用货到付款的付款示例,因此没有信用卡。发布信用卡付款示例,以便我们提供良好的答案。
-
不,我使用测试支付网关,它需要一张我发布此问题的卡片
-
有人可以提出任何建议吗?也许这是直接向 BigCommerce 支持团队提出的问题
标签: c# xml e-commerce bigcommerce credit-card