Add me gateway coinbase to DJANGO project

  • Status: Closed
  • Prize: $40
  • Entries Received: 3
  • Winner: criska

Contest Brief

apply coinbase payment gateway to our project:
https://commerce.coinbase.com/docs/api/

api key: a89ab7d3-8303-46d6-ae0e-70995b7aa307

INSTALL DJANGO PROJECT THEN PLEASE DOWNLOAD HERE:
https://wetransfer.com/downloads/342a998d72fae7e6d9e5b35b6e8c9e0320200518093632/4af5fb
or download here:
https://easyupload.io/azrjbq

use latest python and latest django

once you apply .. run project and you need call this url:

http://localhost:9000/payment/select-gateway?plan=1

TO RUN PROJECT FOLLOW INSTRUCTIONS:


Setup
1. Add "payment" to INSTALLED_APPS
2. in urls.py add this path('payment/', include('payment.urls', namespace="payment")),
3. in dashboard/setting.py update DOMAIN = 'http://localhost:9000 ' to url domain url
4. python manage.py migrate
5. You need to create an user . So you can create a superuser


Development
1. Create templates in folder with gateway name in /payment/<gateway>/yourtemplate. Refer how we did for stripe
2. Create view functions in a new file only i.e. views_<gateway>.py
3. Add yout urls in payment/urls.py
4. Check def checkout() in views_stripe.py

You need to get plan details from get_plan_price_details() and craete a transaction with create_transaction()
with any payment gateway you use.

product = get_product_details(request)
plan = get_plan_price_details(request)
price = plan['price']
currency = plan['currency']
plan_id = plan['plan_id']
transaction_id = create_transaction(request, plan_id, currency, amount=price, payment_gateway=settings.STRIPE)

5. After succesful payment you need to redirect to URL : settings.SUCCESS_URL + str(transaction_id)

once you apply .. run project and you need call this url:


http://localhost:9000/payment/select-gateway?plan=1
stripe already applied you can test process with stripe dummy cards
---------------------------------

WHO will be first and it will be works .. will be winner + we will give you another 3-4 gateways to make + long time cooperation !

IF YOU NEED ANY INFO LEAVE COMMENT ... we will answer you asap.

THANK YOU for your helping and cooperation !

Recommended Skills

Employer Feedback

“Very good and skilled freelancer ! Skilled for Django !! We hope we can cooperate also in future ! A++++”

Profile image Labs.Macrosoft.sk - TEAM, Slovakia.

Top entries from this contest

View More Entries

Public Clarification Board

  • Labs.Macrosoft.sk - TEAM
    Contest Holder
    • 3 years ago

    will someone solve ?

    • 3 years ago
    1. Shehroj
      Shehroj
      • 3 years ago

      Hi,
      Please check my solution.

      • 3 years ago
    2. criska
      criska
      • 3 years ago

      Hello,
      I've solved the implementation please check my solution

      • 3 years ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!