Update Order Status after PayPal Payment on Multivendor Ecommerce Website built with Django and React Js using REST API #48

Posted by

Change Order Status After PayPal Payment|Multivendor Ecommerce Website Django ReactJs|REST API #48

Change Order Status After PayPal Payment

In a multivendor ecommerce website built using Django, ReactJS, and REST API, it is important to be able to handle PayPal payments and update the order status accordingly.

Step 1: Receive PayPal Payment

When a customer makes a payment using PayPal on your website, you will receive a payment confirmation from PayPal. This confirmation will contain all the necessary information about the payment, including the order ID and the amount paid.

Step 2: Update Order Status

Once you receive the payment confirmation, you can use the order ID to locate the corresponding order in your database. You can then update the order status to ‘Paid’ or ‘Processing’, depending on your business logic.

Step 3: Notify Vendor

If you are running a multivendor ecommerce website, it is important to notify the vendor associated with the order that the payment has been made. You can send an email or a notification to the vendor informing them about the payment and the updated order status.

Step 4: Display Updated Order Status

Finally, you can display the updated order status to the customer on the order confirmation page. This will help the customer keep track of their orders and know when to expect their products to be delivered.

Conclusion

By following these steps, you can effectively manage PayPal payments and update order statuses in a multivendor ecommerce website built using Django, ReactJS, and REST API. This will help improve the overall user experience and streamline the order fulfillment process.

0 0 votes
Article Rating
6 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@uniqueadhikari721
1 month ago

sir, after i followed your instruction to implement paypalbutton, its showing error, Cannot read properties of null (reading 'useReducer')

TypeError: Cannot read properties of null (reading 'useReducer') how to solve this?

@calmandrelax6812
1 month ago

Hi sir can you tell me in which video you've added ProductImagesInline class as StackedInline? I want to go back and view it.

@zoljargalenkhtaivan9661
1 month ago

Hello, sir. Thank you so much for doing this. I have an issue. Payment button in Checkout page was working fine few days ago. But suddenly stopped working. Orderitems are not created in server. Still in localstorage even I clicked on 'Payment' button. I have been following every single steps. Why?

Bad Request: /api/orderitems/

[16/Jun/2023 17:23:56] "POST /api/orderitems/ HTTP/1.1" 400 75

@ccgabyking7648
1 month ago

keep the good work fam!

@tobiochan3637
1 month ago

what about the customer address and default address while ordering?

@bijendernagar15
1 month ago

Thank you so much sir pls complete this series at least I purchage this project source code for support this channel