Is it possible to “capture funds” for authorized credit card transactions via the API?

别来无恙 提交于 2019-12-24 00:16:09

问题


It is possible to set up your Bigcommerce integration with a credit card processor (e.g. Braintree) such that the payment is only authorized by default and a second step is required to capture the funds.

Bigcommerece leaves these transaction in an "awaiting payment" status and provides UI to initiate the capture of said funds via the admin interface.

Is there a way to capture funds on a specific transaction using the API?


回答1:


Not as of today. You cannot capture funds via API.




回答2:


Not through the API, but if you have your orders page open, then you can send a JavaScript call through the browser. In this example orderNumber is the order you want to capture

var myLinks = document.getElementById('content-iframe').contentWindow.document.getElementsByClassName('capture-trigger '); 
for (i = 0; myLinks.length; i++) {
   if (myLinks[i].getAttribute('data-order-id')==='" & orderNumber & "') {
       myLinks[i].click();
   }
}

You also need to click the confirm button (or simulate a return keystroke).



来源:https://stackoverflow.com/questions/20182697/is-it-possible-to-capture-funds-for-authorized-credit-card-transactions-via-th

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!