Dujiaoka

To integrate imsafu payment with Dujiaoka, you need to have basic knowledge of server operations. However, there's no need to worry as you can simply follow the instructions in the tutorial step by step.

Preparation

Please make sure to correctly install Dujiaoka according to their official tutorial. This tutorial will provide guidance based on the installation using the Baota panel.

Plugin Download

Please click imsafu-dujiaoka-v1.0.0.zipopen in new window to download the plugin and extract it.

Plugin Upload and Configuration

  1. Log in to the Baota panel backend, click on "Website" in the left main menu, and then enter the "Root Directory" of the Dujiaoka website.

    dujiaoka_btpanel_1

  2. Go to the directory /app/Http/Controllers/Pay and upload ImsafuController.php to that directory.

    dujiaoka_btpanel_2

  3. Then go to the directory /routes/common and double-click on pay.php to edit it.

    dujiaoka_btpanel_3

  4. Please paste the following code at the location shown in the screenshot and click on Save.

// imsafu
Route::get('imsafu/{payway}/{orderSN}', 'ImsafuController@gateway');
Route::post('imsafu/notify_url', 'ImsafuController@notifyUrl');

dujiaoka_btpanel_4

Dujiaoka Backend Configuration

In the left menu, go to "Configuration" -> "Payment Configuration" plugin, and then click the "+ New" button in the upper right corner to add a payment method.

dujiaoka_admin_1

Configure according to the "Parameter Description" & "Reference Screenshot". dujiaoka_admin_2

Parameter Description:

  1. Payment Name: The name of the payment plugin.
  2. Merchant ID: Used to display the merchant name on the payment platform.
  3. Merchant Key: Used to fill in the wallet address that receives the cryptocurrency. You can use a wallet address or a deposit address of an exchange.
  4. Merchant Secret: Please go to imsafu official websiteopen in new window and click on "Join Waitlist" to fill out the form to apply for an API Key. (This field can be left blank if Test Mode is enabled)
  5. Payment Identifier: Fill in qrcode.
  6. Payment Scene: Select General.
  7. Payment Method: Select Redirect.
  8. Payment Processing Route: Fill in /pay/imsafu.

Test Mode Explanation

  1. Modify the $is_testmode variable in ImsafuController.php to control the enablement/disabling of Test Mode.
  2. In the case of Test Mode enabled, there is no need to fill in the API Key.
  3. To obtain test coins: USDC Official Faucetopen in new window.
  4. Please note that Test Mode should not be enabled in a production environment.
Last Updated:
Contributors: xavierdiff, tomatopasta67