Quickbook XML和Merchant Services的ReceivePayment待处理

时间:2020-03-06 14:59:42  来源:igfitidea点击:

在Quickbooks SDK手册中,有一个名为"使用ReceivePayment进行信用卡授权和捕获"的部分。读着...

Using ReceivePayment for Credit Card Authorization and Capture 
  
  If the company is subscribed to QBMS, you can record a ReceivePaymentAdd that is basically a pending transaction. That is, in this usage, you want to save a QBMS authorization transaction into QuickBooks. Thus, the ReceivePaymentAdd contains a CreditCardTxnInfo aggregate with a CreditCardTxnType of Authorization. QuickBooks saves this as a pending transaction. Later, when the authorized charge is captured to become a real charge in QBMS, you can record that charge into QuickBooks by modifying that ReceivePayment (ReceivePaymentMod). The ReceivePaymentMod will have a CreditCardTxnInfoMod containing data from the QBMS capture transaction, with a CreditCardTxnType of Capture. QuickBooks automatically removes the pending status and records the transaction.

我的问题是,我们实际上如何使用QBXML做到这一点?

现在,我有一个VB.NET应用程序,可将发票发送到快速簿,但是用户必须切换到快速簿,然后单击"客户->接收付款"以从其信用卡中扣款(使用Quickbooks Merchant Services)。以某种方式自动执行此操作真是太好了,也许是通过向Quickbooks发送XML消息以向卡收费的方式来实现的?)

解决方案

我不太清楚意思是……我的处理方式是:

  • 使用QBMS XML API对卡进行授权
  • 将收到的付款和授权推送到QuickBooks
  • 准备就绪后,请使用QBMS API为卡充值
  • 发出ReceivePaymentMod以在QuickBooks中记录捕获

据我所知,没有办法告诉QuickBooks自己进行捕获。但是我们可以使用QBMS API进行捕获。