Skip to main content

Testing payment extension

Prerequisites

Testing installation and activation flow

  1. Go to Fynd Partners.

QG03

  1. Click Accounts.

QG03

  1. Accounts screen will appear.

QG03

  1. Open desired development account. Here, we are selecting Self Ship.

QG03

  1. The development account opens.

QG03

  1. Go to sales channel (also called as application).

QG03

  1. Click Settings.

QG03

  1. Go to Payments in the Cart & Payment section.

QG03

  1. Open General Payments.

QG03

  1. Click Add Payment Gateway.

QG03

  1. The list of available payment gateway will appear.

QG03

  1. Select the payment gateway to be tested. Here, we are selecting checkout_logo.

QG03

  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.

QG03

  1. Click Accept and Continue.

QG03

  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.

QG03

  1. Click Submit.

QG03

  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.

QG03

  1. Open your payment gateway extension.

QG03

  1. Toggle on to activate your payment extension.

QG03

  1. Click kebab menu as shown in the image below.

QG03

  1. Click Active.

QG03

  1. Click Save.

QG03

  1. Your extension is now active on the storefront.

QG03

Testing Payment flow

  1. After you have activated your payment extension in an application in a company, open the application website by clicking view icon as shown below. QG03

  2. Your application website opens. Now register and sign in.

  3. Go to a product, add it your cart and checkout.

  4. 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.

QG03

QG03

  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.