Skip to content

Adding details in the Core App

1. Steps to Add Gender

  1. Navigate to the Core App in Django Admin.
  2. Click on Gender.
  3. Add a new gender with the following details:
Field Value
Gender Type Male
Female
Other
  1. Click Save to add the gender options.

2. Steps to Add Measurement fields

  1. Navigate to the Core App in Django Admin.
  2. Click on Measurement fields.
  3. Add a new measurement fields with the following details:
Field Name
name Waist
Hip
<Other Measurement>
description <desc>
is_active True
  1. Click Save to add the measurement fields.


3. Steps to Add payment method

  1. Navigate to the Core App in Django Admin.
  2. Click on payment method.
  3. Add a new payment method with the following details:
Field Value
method name PayPal
  1. Click Save to add the payment method.

4. Steps to Add PayPal Settings

1. Steps to Create a PayPal Business Account and Obtain Credentials

Before configuring the PayPal settings in Django Admin, you'll need to create a PayPal Business account and obtain the credentials (Client ID and Secret Key) necessary for integrating PayPal payments.

Step-by-Step Process to Create a PayPal Account

  1. Create a PayPal Business Account:
  2. Go to the PayPal Sign-Up Page and choose the Business Account option.
  3. Follow the instructions to complete the registration process, including verifying your email and providing business information.

  4. Set Up API Credentials: Once you have created your PayPal Business account, you'll need to set up API credentials:

  5. Log into PayPal using your business account credentials.

  6. Navigate to the PayPal Developer Dashboard: PayPal Developer Dashboard.
  7. In the Developer Dashboard, click My Apps & Credentials under the REST API apps section.
  8. Create an App:

    • Click on Create App.
    • Name your app and select your preferred environment (either Sandbox for testing or Live for production).
    • After creating the app, you will be given a Client ID and Secret Key.
  9. Obtain the API Base URL: The base URL depends on whether you're using the sandbox or live environment:

  10. Sandbox: https://api.sandbox.paypal.com
  11. Live: https://api.paypal.com

  12. Obtain PayPal API Mode: Set the mode to sandbox if you're testing, or live for production.

Example PayPal Credentials:

  • Client ID: YOUR_CLIENT_ID
  • Secret Key: YOUR_SECRET_KEY
  • API Base URL: https://api.sandbox.paypal.com (or https://api.paypal.com for live)
  • Mode: sandbox (or live for production)

2. Steps to Configure PayPal Settings in Django Admin

  1. Navigate to the Core App in Django Admin.
  2. In the Core App, click on PayPal Settings.
  3. If a record for PayPal settings does not exist, click Add PayPal Settings to create a new one.
  4. Fill in the PayPal settings with the following details:
Field Value
client_id Your PayPal Client ID
secret_key Your PayPal Secret Key
api_base_url https://api.sandbox.paypal.com for sandbox or https://api.paypal.com for live
mode sandbox or live
  1. Click Save to save the PayPal settings.


6. Steps to Add state

  1. Navigate to the Core App in Django Admin.
  2. Click on product status.
  3. Add a new state with the following details:
Field Value
state name <state name>
country <select country>
  1. Click Save to add the state.