PayPack logo
PayPack logo

All articles

RefundsUpdated 8 months ago

There are 2 methods to refund PayPack charges in NetSuite.

  1. Create a NetSuite Credit Memo from the paid Invoice and process the refund under the PayPack subtab.
    • Uses NetSuite's native refund workflow.
    • When a refund is processed on the credit memo using the PayPack subtab, a customer refund is automatically generated and applied to the credit memo.
    • Stripe refund id will be stored in the Customer Refund custom field STRIPE REFUND ID (PAYPACK).
      PayPack Credit Memo Refund.png
  2. Navigate to PayPack's Refund Payments (novaApps → PayPack - Integrated Payment Processing Solution for Stripe → Refund Payments).
    • Ability to process multiple transaction refunds at once.
    • Can process refunds for Sales Orders and Invoices.
    • Deploy scheduled script, nm PayPack Refund NS Process Script, to auto-generate Credit Memo and Customer Refund.
      Refund Payment Page.png

#1 - Refund on the Credit Memo

Watch how to process a refund in PayPack at the credit memo.


00:00
00:33

#2 - Refund Payments Page

PayPack creates a refund in Stripe on the specified charge from NetSuite which results in a credit memo and/or customer refund.

Configure Refund Settings

Refunds.png

Note: Once a refund is successful with Stripe, it can take up to 15 minutes for NetSuite to create the credit memo/customer refund.

*Required

  • Credit Memo Item – Optional non-inventory item to track refunds sent to Stripe.
  • *Customer Refund Payment Method – Typical required field on the customer refund transaction. To create a new payment method, navigate to Setup → Accounting → Accounting List.
  • *Credit Memo Mapping for Refunds – When needing to populate required fields on an credit memo transaction, enter metadata in JSON format to satisfy the requirement.
  • *Customer Refund Mappings – When needing to populate required fields on an customer refund transaction, enter metadata in JSON format to satisfy the requirement.

Sample JSON data for Credit Memo / Customer Refund Mappings

1{
2 "mapping": {
3 "fields": [
4 {
5 "generate": "otherrefnum",
6 "lookupName": "otherrefnumlookup"
7 },
8 {
9 "generate": "subsidiary",
10 "initializationDefaultValue": true,
11 "lookupName": "subsidairylookup"
12 },
13 {
14 "generate": "memo",
15 "lookupName": "subsidairylookup"
16 }
17 ],
18 "sublist": {
19 "item": [
20 {
21 "generate": "location",
22 "extract": "",
23 "hardCodedValue": 2
24 }
25 ]
26 }
27 },
28 "lookups": {
29 "otherrefnumlookup": {
30 "resultFieldId": "tranid",
31 "recordType": "parent"
32 },
33 "subsidairylookup": {
34 "resultFieldId": "subsidiary",
35 "recordType": "parent"
36 }
37 }
38}

Create New Scheduled Script

Follow the steps below to create a scheduled script that comes with the PayPack bundle.

  1. Search for nm PayPack Refund NS Process Script in the NetSuite search bar
  2. Select “new” to create a new script deployment.
  3. Change status to “Scheduled”.
  4. Update schedule to “Daily Event” and repeat “Every 15 minutes” with no end date.
  5. Ensure the checkbox deployed is checked and click save.


00:00
00:38

Your refund script should now run every 15 minutes and create corresponding credit memo or customer refunds after a Stripe refund is processed.

Retry NetSuite Refund Transaction

When a successful Stripe refund is processed, PayPack will attempt to create the corresponding NetSuite refund transaction records.

If an error occurs, you will be able to view the affected transactions by navigating to novaApps → PayPack - Integrated Payment Processing Solution for Stripe → Refund Logs.

View_Refund_Logs.png

Refund_Error.png

Then edit the appropriate refund and uncheck Refund Processed in NetSuite to reprocess.

Edit_PayPack_Refund_Log.pngYour refund script should now run every 15 minutes and create corresponding credit memo or customer refunds after a Stripe refund is processed.

Was this article helpful?
Yes
No