Handle Paypal Payments/Checkout in a Django Rest Framework - django

I want to implement payment/checkout, preferably the user stays on my website (Angular frontend).
I have been wandering around the docs of paypal for weeks, and googling too, but I don't seem to find an EFFECIENT way to do it (lack of drf tutorials and guides).
I also have seen django-payments, django-paypal, dj-paypal. but none of them has a clear docs about an integration with DRF...
I feel like I'm lost here.
any help? hints?

There is an amazing payment gate that you can get help from. its name is braintree, it's super amazing and it's used by big companies like Uber and Airbnb. it has a detailed document which helps you a lot.

Related

Ajax login in Django

I want to do my log in stuff with an ajax request so that the page doesn't reload. So instead of using a form with method="POST", I will just make a post request with the email and password field values.
What are the upsides and downsides to this? How do I ensure security of the credentials? Please let me know if you have any questions.
Normally linking to external resources isn't ideal here, but in this case the broad nature of your question, and the exact fit of a specific external resource, makes me want to recommend that you read:
https://code.djangoproject.com/wiki/AJAX
It's provided by the Django community to answer this sort of question, and contains links to popular AJAX libraries and tutorials. Your question didn't provide much in the way of specifics, but I'd imagine at least one of those tutorials matches your situation.
It doesn't specifically address security, but that's a very broad topic: to get a proper answer here you'd have to ask a more specific question.
However, if you want to take security seriously, I'd highly recommend trying to understand OWASP (Open Web Security Project) top ten attacks: https://owasp.org/www-project-top-ten/
If you simply understand those ten attacks, and how to defend against them, you can protect a Django-based site ... or a site based on any other framework ... because properly protecting your site transcends framework-specific concerns.
Also it's worth noting that some of those attacks can apply to non-AJAX sites also, so it's a great read even if you don't adopt AJAX.

Direct payments between users on Django based website

I am building a website that should allow users to buy stuff from each other. I don't want to be involved in money transactions at all. It will be pretty much something like eBay. Card payments are not a must. Basically user views an item added by another user, clicks on a buy button and finishes the payment using third-party service.
The application will be based on Django and I was thinking of PayPal. I also do not want to pay for Premium accounts as I am not planning to charge users or earn money in any way. Could you please give me some advice on what is the best solution for this kind of project? I have been doing some research on the Internet but I am still quite confused.
Any help is much appreciated, thank you.
I am personally a huge fan of Stripe. It's much easier to work with than PayPal and also much easier to implement. It allows you to add transaction fees if you wish.
I'd read up on it, as it has quite a few solutions ranging from inclusion of a simple JavaScript file that creates Checkout/Pay buttons to designing a custom checkout flow.
Their documentation is extensive, highly geared toward developers, and worth the read.
Good luck!

Web services in Sitecore

I don't have much experiences with web services at all, but i hope someone here can give me some advice on how to create what i'm searching, or at least point me in the direction of a useful tutorial.
Here goes:
I have a news section, with news items. Example of the path: content\home\news\ (here all news items are stored as seperate items).
Now i wanna take the news title and text fields, and export those for viewing on another website, on another domain (not running in a sitecore solution). I think the smartest solution for this, is to use webservices or am i wrong?
And if it is, how can i do this the easiest way in a web service? I tried to find some documentation on how to do this, but haven't had any luck in doing so. Some example code would be nice.
Really hope someone here can contribute with a little help, would be much appreciated.
I agree with steve, the fast way to get this working is with RSS. Then on the other end, outside of sitecore, you could parse the rss right on the page via javascript: Parse RSS with jQuery

Easy Way for Non-Nerd to Manage Simple Site?

I'm not sure if this is an appropriate question for StackOverflow. I have a friend show wants a simple "Brochure Ware" web site. I could make it for him but it would be better if he could manage it himself. Are there any services out there that allow a non-technical person to create and maintain a very simple site? I'm thinking just a few pages - contact, about, home with some photos and general info. He also wants to sell some stuff but I'm going to suggest he does this using EBay but the web site would be a handy reference for potential customers who want to know more about him and his services.
Thanks a lot!
Cheers
Mark
You are looking for a Content Management System (CMS).
You can build your own software, try something open-source, or go the easy way, and go with SaaS: software as a service. Something that fits your needs (based on what you told us), is something like Shopify. It manages your products, orders, but also has functionality to manage static pages.
agreed with the CMS comment #Phil Hunt
if you are a true non-nerd go for the 5 minute install of wordpress
so simple. Shopify plugin?

Free server solution for strict content photos with geotags

I would like to create some kind of open free "group" posting of photos with geotags
First I thought about Panoramio, but seems there is no API for photos upload.
By now I can see only two ways:
Flickr - there are groups but you have to approve group membership anyway, or use tags for grouping which is bad for maintenance
Custom server solution which will cost efforts and hosting
Can you suggest other free photo services with geotags functionality, or opensource solutions?
Thank you!
EDIT
:) Want to add, that I am intrasted in services with open API that is why I thought its a good idea ask this question at SO...
I guess, Picasa may be an alternative in some way.
Picasa access in android: PicasaUploadActivity
it also seems like panoramio does have an API based on services with responses in JSON
the request will be something like
http://www.panoramio.com/map/get_panoramas.php?order=popularity&set=public&from=0&to=10&minx=-124.29382324218749&miny=36.089060460282006&maxx=-119.8773193359375&maxy=38.724090458956965&callback=MyCallback
checkout this post in google geo developers blog for more info
hope it helps.
G.