Django PayPal (1) – Checkout Django.How

Author avatar wrote on 01/06/2022

WAY 1 PayPal Checkout

+ No package must be installed
+ No migrate needed – no changes to DB
– PayPal app should be created in PayPal
– You need a client key not just the email

1.Get the button code

2. Customize the button

You can customize it with these links
https://developer.paypal.com/docs/business/checkout/set-up-standard-payments/integrate/
https://developer.paypal.com/docs/checkout/integration-features/customize-button/

What to change

  • client ID
  • amount
  • currency
  • description
  • button style
  • My case
    I use the same form for both Stripe and PayPal
    When they return success I submit a form
    you can show message or redirect to any url

    3. Create business app in paypal
  • https://developer.paypal.com/developer
  • Change the client-id in script link
  • 4. Create sandbox account -for testing
  • one for pesonal
  • one for business
  • https://developer.paypal.com/developer/accounts/create
  • and test with personel account
  • Resources
  • https://studygyaan.com/django/django-paypal-payment-gateway-integration-tutorial
  • https://www.youtube.com/watch?v=8rMfW4wO-vU
  • https://developer.paypal.com/docs/business/checkout/set-up-standard-payments/integrate
  • https://developer.paypal.com/docs/checkout/integration-features/customize-button
  • CRUDgen Django CRUD generator