Skip to main content

Testing Payment Extension

Prerequisites

Testing Installation and Activation Flow

  1. Go to Fynd Partners.
  1. Click Company. The Company page will open.
  1. Open desired development account. Here, we are selecting Self Ship.
  1. Open the sales channel dropdown list and click Settings.
  1. In the Cart & Payment section, go to PaymentsGeneral Setting.
  1. Click Add Payment Gateway. A list of available payment gateway will appear.
  1. Select the payment gateway to be tested. Here, we are selecting checkout_logo.
  1. Click Install. Your extension should receive a request on {Extension URL}/fp/install URL. It should handle it as explained in installation and activation guide.
  1. Click Accept and Continue.
  1. Your extension should redirect to its home page for this application where it should show a form to collect merchant payment gateway credentials. Enter test credentials to continue.
  1. Click Submit.
  1. Now go back to Sales Channel -> Settings -> Payments -> General Settings. When you go on this page, your extension should received getActivationReadiness API call. If it has collected the Payment gateway credentials for the application, it should respond with success. Upon getting success as true response, the payment extension is shown as Inactive in payment settings page and can be activated by merchant as explained in next step. If your extension responds with success as false in getActivationReadiness API call then your Payment Extension is shown as Available for activation in payment settings page.
  1. Open your payment gateway extension.
  1. Toggle on to activate your payment extension.
  1. Click kebab menu as shown in the image below.
  1. Click Active.
  1. Click Save.
  1. Your extension is now active on the storefront.

Testing Payment Flow

  1. After you have activated your payment extension in an application in a company, click the view icon (👁) to open the application website.
  1. Your application website opens. Now register and sign in.
  2. Go to a product, add it your cart and checkout.
  3. Verify that payment flow works.

Testing Refund Flow

  1. On your application website, click profile -> My Orders. You would see list of all the orders placed by you.
  1. Cancel an order and check that your extension should receive initiateRefundSession call.

  2. Check that you are able to process refund for the cancelled order.


Was this section helpful?