I have a Restlet this creates Customer payment rec...
# suitescript
e
I have a Restlet this creates Customer payment records (I get from Stripe). The problem is that the payment get status
Unapproved Payment
and even if I set the account field it uses
Unapproved Customer Payments
. If I set an invalid account it will complain, for valid accounts it just ignore it. Is there a way I can approve the customer payment from my RestLet?
If I use the NetSuite UI and change the account, then the payment gets status
DEPOSITED
. So it looks like the account is all I need to change. But I dont seem to be able to do it in code
Saving the record, then opening the record again and setting the account worked 🤔
b
it sounds like you are using a payment method associated with a payment processor
in which you want to mark the customer payment as ccapproved
slightly more complicated if your account uses payment instruments, but same basic idea
e
Not sure I understand. I get a call to my Stripe Webhook about an approved payment. Then I call my Restlet that creates a customer payment in NetSuite, associates it to the invoice and by changing the account also approves it.
b
and which payment method do you use
e
This was a Visa transaction
b
if your visa payment method is associated with a payment processor in netsuite
then the unapproved payment status was telling you that there was no payment event information entered
if you dont care about that stuff, than your method is probably fine
e
OK. I see No, I dont have a payment processor in for cards in netsuite