Question on capturing CC transaction in NS when au...
# accounting
t
Question on capturing CC transaction in NS when authorized in an external website - BigCommerce. The normal NS process is to capture the funds on a Sales Order when it is Billed automatically. However, I need to perform the Capture in NS either on the Sales Order itself or a Customer Deposit created from the Sales Order. We have the CyberSource Transaction ID and thus it should be possible to just create the Customer Deposit, set the Transaction ID field and have the funds captured in CyberSource. Does anyone know how this can be done?
d
I may be completely wrong, but I suspect if you're doing a pre-auth in BigCommerce, the capture/settlement request would have to come from the same place. Either way, it's probably easier to just do an https request in an event script on sales order or deposit to BigCommerce's payment API https://developer.bigcommerce.com/api-reference/store-management/order-transactions/payment-actions/paymentactioncapture
t
Hi Dominic, technically with the gateway Transaction ID it “should” be possible to capture in a different system; but I like your approach. The Processing Profile in NS could be “external” and the custom API call would then just capture the funds. That’s pretty clean! 🙂
m
We did authorize in BigCommerce and capture in NetSuite at my previous company though it was with a different gateway (eWAY) and we captured on invoice
s
Capturing with Netsuite give your lots of issue. We tried to do this with adyen and had lots of issue because of the rounding and tax issue we had switch back to native flow.
t
I was able to submit a Customer Deposit in NS using the CyberSource Request ID and a fake CC number and it Captured correctly against the BigCommerce Authorization. This was in a Sandbox test environment and will need to be tested in the live environment to be sure. A later phase will be to look at utilizing the CyberSource token module and see if BigCommerce can store the token and get it passed back to NS and stored on the Customer record.
p
Not a developer so I might be butchering this, but can you not just pass the auth code and PN ref from the ecommerce site into the Sales Order in NS, flag it as an external event, and then leave that PN ref on the SO waiting to be captured when you generate the cash sale? I would think you would also want to pass the tax amount calculated from BigCommerce into the Tax Total field on the txn to avoid any rounding errors as suggested in the thread….but I would think this would be possible as long as the payment processing profile in NS and BC are both CyberSource, so the Cybersource call would just take the PN ref, not caring where it came from, find it in the system and process it for the capture….
m
@PaulJ that's basically what we did, except that we found the PN ref would randomly get cleared from the SO. We ended up storing it in a custom field and using a script to populate the native field when creating the cash sale
t
We are using Avalara Avatax in both BC and NS and thus the taxes are exactly the same. Yes, using the same CyberSource merchant account in both BC and NS and thus the Capture is working correctly. We actually copy the payment info to a Customer Deposit on the SO and Capture there rather than waiting for downstream invoicing to create a Cash Sale (too late).