我試圖自動創建銷售收據並通過QBOE對信用卡收費。 API似乎通過設置Detail-> CreditCard-> CreditChargeInfo來表明這是可能的。我希望能夠在CreditChargeResponse元素中收到一些信息,但是我在收到關於嘗試CC收費的回覆時沒有收到任何信息。此外,創建銷售收據並選擇正確的付款方式,但在付款下不會保存CC信息,並且似乎沒有試圖按以下要求提供的卡收費。我剩下以下問題銷售收據處理信用卡支付QBO V2
- 是否存在爲了在QBOE中保留和收取CC而缺少的元素?
- 是否有任何關於使用IPP API處理CC所需的業務邏輯的文檔?
- 任何人都可以提供這個請求應該看起來如何工作的例子嗎?
REQUEST :::
<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>