I'm trying to figure out how to use SuiteScript to...
# suitescript
k
I'm trying to figure out how to use SuiteScript to automatically approve a sales order (easy), generate a cash sale, and also charge the card attached to the sales order in one go. I'm not sure if I'm making this harder than it needs to be, but does anyone have any tips to do this? or resources that I should look into for additional info?
b
generally you figure out how to do it in the ui first
then translate it into script
beware pressing buttons, only a limited subset of buttons have equicalents in suitescript
k
Is the Sandbox completely walled off when it comes to authorizing/charging credit cards?
b
might depend somewhat on your cc processor
i could swear that in the past the cent value mattered
but generally you have to setup your credit card processor again, its not copied from production
you may also want to configure your Payment Processing preferences so that
Preserve Transactions When Payment is on Hold
k
I appreciate the help @battk - thanks!!