Resolving Stripe Payment Issue with Customer Deposit Not Being Created

Overview: This article addresses the issue where customer deposits were not being automatically created in NetSuite after Stripe payments were made. The issue was caused by static URLs used in the integration scripts, which became incompatible after a NetSuite update. To resolve this, we updated the scripts to use dynamic URL generation.

Symptoms:

  • Customer deposits are not automatically created in NetSuite after a Stripe payment is processed.
  • Sales Order processing is delayed as the payment must be manually confirmed.

Root Cause: The issue occurred due to the use of static URLs in the Stripe integration scripts. After a recent NetSuite update, these static URLs became invalid, preventing the automatic creation of customer deposits.

Solution: To fix the issue, the integration scripts were updated to replace static URLs with dynamic URL functions, allowing the system to generate valid URLs that adapt to any future updates. This solution ensures that customer deposits are created automatically upon successful Stripe payments, maintaining the intended functionality.

Steps to Resolve:

  1. Identify Static URLs:
  • Locate any static URLs used in the Stripe integration scripts. These URLs may have become incompatible after the NetSuite update.

2.Implement Dynamic URL Functionality:

  • Use the nlapiResolveURL or equivalent SuiteScript functions to generate dynamic URLs. This ensures that the URLs are adaptable and won’t require manual updates after future NetSuite updates.

Example:

var url = nlapiResolveURL("SUITELET", "customscript_getcustomervouchernumbers", "customdeploy_getcustomervouchernumbers", true);

3.Test the Integration:

  • Once the dynamic URLs are implemented, create a test Sales Order and process a Stripe payment to ensure that the customer deposit is created automatically in NetSuite.

4.Confirm Functionality:

  • Verify that the customer deposit is correctly linked to the Sales Order after a Stripe payment. This should resolve any delays in the order approval process.

Testing: Since the payment system only accepts original card details, we recommend that clients perform the final test on their side by creating a Sales Order and verifying that the customer deposit is automatically created in NetSuite.

Conclusion: By updating the Stripe integration scripts to use dynamic URLs, the issue of customer deposits not being created after payments has been resolved. This ensures smoother Sales Order processing and reduces the need for manual payment confirmations.

Note: Please reach out to the support team for further assistance or clarification.

Leave a comment

Your email address will not be published. Required fields are marked *