Hey I want to develop a website which basically allows customers to visit my site and add orders to there cart. On check when user enters payment credentials i basically want to submit a process to alibabas webpage to the direct order linked to on my webpage, and place an order through the site using there shipping/billing and payment info. That way when they complete checkout on my homepage alibab will have sent me an email saying i have order and item for (user inputfields from my webpage from) and all the other info alibaba sends on there checkout. Basically all orders will go through my account, but there will be different shipping and payment methods..
If something like this is possible could someone possible point me in the right direction to creating something like this?
I don't mind creating a java web applet for this e-commerce site.
Related
I need to know how I can import a Map that will allow me to receive a users location, this should be simple since there are lot of sites that ask a user "allow site to track" location but I new to java.
I need the output to say something like
User: 122312(Ip address)
location: 232 wood street (physical address on the imported map or google maps)
IP usually included in the request header but with that, you can only find out the country of the user (that might be wrong if the user is using the proxy).
If you want to capture the user location then you have to use client-side language such as javascript etc because you need to take user permission before capturing it if you are doing with the help of the browser. then the client side language will push you the latitude and longitude which will fulfill your purpose.
Best Resource to explain you the everything in detail.
I'm currently working on a native Android app for my company and ran into some problems with Salesforce lately.
I hope I can find some help here.
What I want to achieve:
The company has a lot of Accounts in Salesforce with 3 important fields for the app: Name, Business (Workshop or Parts Dealer) and location(latitude, longitude)
I would like to show those Accounts(Workshops/Parts Dealers) as markers on a google map in my Android app based on a radius around the user's current location. So it would be more than sufficient to get the data as JSON or XML(i read about sObjects, which would be nice too)
The app will be freely available on Google Play Store and every user should be able to see all the Workshops/Parts dealers around the world.
The problem I'm facing is that I can't find a way to fetch the data inside my app without authenticating every user with a Salesforce-Login.
Which API is the best to use in this case?
It would be so awesome if anybody could help me with this problem.
What I tried so far:
- SalesforceMobileSDK: If i extend SalesForceApplication() i always end up with the Salesforce-Login Screen.
It seems that every client has to be authenticated for API-calls to work. I tried using the method peekUnauthenticatedRestClient(), but this method only works on full path URL's(e.g. "https://api.spotify.com/v1/search?q=James%20Brown&type=artist"), which isn't really practical for my Use-case.
I feel like I read nearly all docs about salesforce API, but can't quite get my head around how to solve this problem, although it seems like to be a pretty common use-case.
would a salesforce-apex method which would select all records inside a set radius around the user's location to be accessible without authentication?
Thanks for your help in advance!
Roman
Try asking on salesforce.stackexchange.com. Your question is more about licensing model than a particular programming problem. It might even be the case that you don't really need Salesforce for your project, you'd be better off on Heroku (even free tier) if the login piece is an issue...
All Salesforce APIs require some form of authentication. If you're positive you don't want to hardcode "Integration user" credentials in the app and you don't want to pay for (self-)registered user licenses in your org...
Try to read about these:
Site - piece of Visualforce running under specific "guest user", letting you view & interact with SF data without having to log in. You expose SF data to the world but that means it's your job to handle security (if any) and craft the API. You want to really display the data to human? Or just return JSON content or what...
Sites are meant to be displayin some incentive to contact you. Your product catalog / basic order form. Some map of nearby locations. Maybe a "contact us" form. There's limit on the traffic so eventually they'll explode as your app gets popular:
Customer Community - typically you need named licenses (even if they're fairly cheap) to let your customers log in to your SF. You create a Contact, click magic button - boom, this Contact now has a real matching User record with its own license. Think of it as some kind of step up from Sites - it'll still have some limits but will offer more than just raw API access and you'll have better control on what's going on.
I have a question regarding the Paypal Java API. I read their documentation and watched some tutorials about their developer tool to integrate Paypal in my app, but I didn't see nothing about letting users pay each other through Paypal.
To be more explicit, for 2 users, user provides a service through the app for user 2 and user 2 now has to pay user 1 through Paypal within the app. Is it possible, and if it is, how ?
From what I read, the only way I can think about doing this, Paypal API can send an invoice to user 2, but from me (from the application as the receiver) and so the money would go to the app account (express account or whatever it was called) and from there I could forward the money to the user 1. This way would be really inefficient and I wonder if I could make the transaction directly: user 1 sends an invoice to user 2 and user 2 pays that invoice directly.
Thank you.
You can use Adaptive payment API to let user 1 pay user 2 directly, the app act as the API caller, please see document here
I'm using Facebook Grap API tool
to simulate queries before I run them from my android app.
I want to get the users' likes and interests.
However i think the result doesn't include all the user likes and interests.
what is the default number it returns?
how can i ask for all the items?
I want to generate a tree-based menu using Java that will appear on a USSD browser. Each node may have children, ending with leaf nodes. I will also have to maintain state regarding each user who accesses this menu (like his current position on the menu) to facilitate navigation.
Any ideas on how I may achieve the tree generation and state management?
I assume that you get a message from the gateway such as:
(Session#, UserInput)
and you need to compute the next information to send to the user ?
I propose:
table CURRENTSTATE:
Session#
State
table STATES:
State
Title
table CHOICES:
State
Choice
Name
DoCode
NewState
Then when you get the message (Session#, UserInput):
query CURRENTSTATE using the Session# to determine what state the user is in.
query CHOICES using the State and Choice=UserInput to determine the new state (and DoCode) based on user input.
Based on DoCode, you can do some processing.
update CURRENTSTATE to reflect the new state.
query STATES to get the Title (e.g. "Please choose a color").
query CHOICES to get the possible choices from the new state (e.g. (1, "Blue"), (2, "Red"), etc.)
build the message (concat Title + choices)
return message to user.
Is that a reasonable way to solve the problem ?
HI,
am also currently developing a USSD menu based application. Unforturnately there are scarce resources about USSD applications on the internet and i think it's because USSD unlike SMS is not yet standardized. so every telecom has their own ussd implementation.
The project am working on requires a USSD gateway(run by the telecom) and my webserver(apache) which runs my app.
my app written in php communicates the telecoms USSD gateway via xml fortunately for me. so i get mobile user input from the USSD gatway via xml and i also send xml pages back to the USSD server which inturn display the reply on the use's mobile phone.
that's all i know.
Have a look at an implementation of this problem: Vumi.org
Source code viewable at https://github.com/praekelt/vumi