Skip to main content

Local Testing

To thoroughly test the activation, payment, and refund processing flow of your payment extension, you can create a development account on Fynd Partners. Follow the steps below to set up a development account and test your extension locally.

Prerequisite

  • Ensure that you have already created an account on Fynd Partners.
  • Make sure you have created a development account.

Payments Flow

  1. To test the payment flow, set up your sales channel with products.
  2. After setting up your products, log in to the sales channel as a customer and place an order using the prepaid payment mode to test the payment flow.
  3. After you have activated your payment extension in a company, click the view icon (👁) to open the storefront website.
  4. Your application website opens. Now register and sign in.
  5. Go to a product, add it to your cart and checkout.
  6. Verify that payment flow works.

Refund Flow

  1. On your storefront website, click Profile → My Orders. You will see a list of all the orders placed.
  2. Cancel it from the storefront to test the refund process.
  3. Check that your extension should receive initiateRefundSession call.
  4. Check that you can process the refund for the canceled order.

Testing Installation and Activation Flow

  1. Go to Fynd Partners.
  2. Click Company. The Company page will open.
  3. Open the desired development account. Here, we are selecting Self Ship.
  4. Open the sales channel dropdown list and click Settings.
  5. In the Cart & Payment section, go to PaymentsGeneral Setting.
  6. Click Add Payment Gateway. A list of available PGs will appear.
  7. Select the PG to be tested. Here, we are selecting checkout_logo.
  8. Click Install.
  9. Click Accept and Continue.
  10. Your extension should redirect to its home page for this application, where it should show a form to collect seller PG credentials. Enter test credentials to continue.
  11. Click Submit.
  12. Navigate to Sales Channel → SettingsPaymentsGeneral Settings. When you go to this page, your extension should receive getActivationReadiness API call. If it has collected the PG credentials for the application, it should respond with success. Upon getting success as a true response, the payment extension is shown as Inactive on the payment settings page and can be activated by the seller as explained in the next step. If your extension responds with success as false then your Payment Extension is shown as Available for activation on the payment settings page.
  13. Open your PG extension.
  14. Toggle on to activate your payment extension.
  15. Click the three-dot menu (⠇).
  16. Click Active.
  17. Click Save. Your extension is now active on the storefront.

Was this section helpful?