Setup Paypal Account with Enatega

Here are the detailed steps to integrate PayPal into the Enatega app dashboard:

1.1.

  • Register for PayPal Developer account at website

  • Complete Know Your Business details

  • Take note of Client ID, Secret after approval

    1.2.

Integrate PayPal SDK

  • Open project folder in editor
  • Install SDK via
npm i paypal-rest-sdk
  • Import and configure SDK in app.js

    1.3.

Set up payment routes

  • Create routes to handle pay, cancel actions

  • Add SDK requests and responses accordingly

    1.4.

Design payment approval UI

  • Build form to collect order & payment info

  • Integrate PayPal smart payment buttons

    1.5.

Handle payment approval

  • On approval, create order in database

  • Process payment using PayPal SDK

  • Save transaction details to DB

    1.6.

Configure webhooks

  • Set up listener for payment.* events

  • Update order status on webhook events

    1.7.

Add payment options selector

  • Filter supported methods: PayPal, cards etc

  • Toggle payment UI based on selection

    1.8.

Integrate credit card processing

  • Add card fields using payment libraries

  • Tokenize and charge cards using Stripe

    1.9.

Implement refunds/cancellations

  • Allow refunding/cancellations of orders

  • Process refunds via PayPal/Stripe SDKs

    1.10.

Test end-to-end workflows

  • Try live payments, cancellations, refunds
  • Check order status & DB for updates