我正在尝试自动创建销售收据并通过 QBOE 向信用卡收费。API 似乎表明通过设置 Detail->CreditCard->CreditChargeInfo 可以做到这一点。我希望在 CreditChargeResponse 元素中收到一些信息,但是我在响应中没有收到有关尝试的 CC 收费的信息。此外,创建了销售收据并选择了正确的付款方式,但付款下没有保存 CC 信息,并且似乎没有尝试从以下请求中提供的卡中扣款。我剩下以下问题
- 为了在 QBOE 中保留和收取 CC 费用,我是否缺少某些要素?
- 是否有关于使用 IPP API 处理 CC 所需的业务逻辑的任何文档?
- 谁能提供一个工作示例来说明此请求的外观?
要求 :::
<SalesReceipt xmlns='http://www.intuit.com/sb/cdm/v2'>
<Header xmlns:ns3='http://www.intuit.com/sb/cdm/v2'>
<ns3:TxnDate>2013-04-17-07:00</ns3:TxnDate>
<ns3:TaxRate>9.2</ns3:TaxRate>
<ns3:TaxAmt>0.138</ns3:TaxAmt>
<ns3:CustomerId>1027</ns3:CustomerId>
<ns3:TotalAmt>1.64</ns3:TotalAmt>
<ShipAddr>
<Line1>1234 Fake St SE</Line1>
<City>Fake City</City>
<CountrySubDivisionCode>WA</CountrySubDivisionCode>
<PostalCode>98258</PostalCode>
</ShipAddr>
<ns3:PaymentMethodId>13</ns3:PaymentMethodId>
<ns3:PaymentMethodName>MasterCard</ns3:PaymentMethodName>
<ns3:Detail xmlns:ns5='http://www.intuit.com/sb/cdm/v2'>
<ns5:CreditCard xmlns:ns7='http://www.intuit.com/sb/cdm/v2'>
<ns7:CreditChargeInfo xmlns:ns8='http://www.intuit.com/sb/cdm/v2'>
<ns8:Number>[ACTUALY_VALID_CC#]</ns8:Number>
<ns8:Token>************1111</ns8:Token>
<ns8:Type>MasterCard</ns8:Type>
<ns8:NameOnAcct>Andrew L Reifers</ns8:NameOnAcct>
<ns8:CcExpirMn>**</ns8:CcExpirMn>
<ns8:CcExpirYr>**</ns8:CcExpirYr>
<ns8:BillAddrStreet>1234 Fake St SE</ns8:BillAddrStreet>
<ns8:ZipCode>98258</ns8:ZipCode>
<ns8:Cvv>***</ns8:Cvv>
<ns8:CCTxnMode>CardPresent</ns8:CCTxnMode>
<ns8:CCTxnType>Charge</ns8:CCTxnType>
</ns7:CreditChargeInfo>
</ns5:CreditCard>
</ns3:Detail>
</Header>
<Line xmlns:ns11='http://www.intuit.com/sb/cdm/v2'>
<ns11:Id>1</ns11:Id>
<ns11:Desc>Fake Sale Item</ns11:Desc>
<ns11:Amount>1.50</ns11:Amount>
<ns11:Taxable>true</ns11:Taxable>
<ns11:ItemId>359</ns11:ItemId>
<ns11:UnitPrice>0.50</ns11:UnitPrice>
<ns11:Qty>3</ns11:Qty>
</Line>
回复 :::
<SalesReceipt xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:qbp="http://www.intuit.com/sb/cdm/qbopayroll/v1" xmlns:qbo="http://www.intuit.com/sb/cdm/qbo">
<Id idDomain="QBO">7413</Id>
<SyncToken>0</SyncToken>
<MetaData>
<CreateTime>2013-04-17T11:50:06-07:00</CreateTime>
<LastUpdatedTime>2013-04-17T11:50:06-07:00</LastUpdatedTime>
</MetaData>
<Header>
<DocNumber>4170</DocNumber>
<TxnDate>2013-04-17-07:00</TxnDate>
<CustomerId idDomain="QBO">1027</CustomerId>
<SalesTaxCodeId idDomain="QBO">1</SalesTaxCodeId>
<SalesTaxCodeName>IS_TAXABLE</SalesTaxCodeName>
<SubTotalAmt>1.50</SubTotalAmt>
<TaxRate>9.2</TaxRate>
<TaxAmt>0.14</TaxAmt>
<TotalAmt>1.64</TotalAmt>
<ToBePrinted>false</ToBePrinted>
<ToBeEmailed>false</ToBeEmailed>
<ShipAddr>
<Line1>1234 Fake St SE</Line1>
<City>Fake City</City>
<CountrySubDivisionCode>WA</CountrySubDivisionCode>
<PostalCode>98258</PostalCode>
<GeoCode>LAT=47.974638,LNG=-122.073567</GeoCode>
</ShipAddr>
<ShipMethodId idDomain="QBO"/>
<DepositToAccountId idDomain="QBO">37</DepositToAccountId>
<DepositToAccountName>Undeposited Funds</DepositToAccountName>
<PaymentMethodId idDomain="QBO">13</PaymentMethodId>
<PaymentMethodName>MasterCard</PaymentMethodName>
<DiscountTaxable>true</DiscountTaxable>
</Header>
<Line>
<Id>1</Id>
<Desc>Fake Sale Item</Desc>
<Amount>1.50</Amount>
<Taxable>true</Taxable>
<ItemId>359</ItemId>
<UnitPrice>0.5</UnitPrice>
<Qty>3</Qty>
</Line>