Magento REST Customer API not working - magento

I have tried the sample code “oauth_customer.php” from below documentation:
http://www.magentocommerce.com/wiki/doc/webservices-api/introduction_to_rest_api
Please see the heading: “Retrieve the list of products as a Customer user with OAuth authentication”
But, when I tried to access the page, it seems works fine, but I didn't get the product list array as expected!; instead it just redirected to customer account page in magento.
The steps followed:
1) Set up the consumer key, consumer secret etc.
2)Accessed the page through browser: http://myhost.com/oauth_customer.php
3)Asked for customer login credentials and then clicked “Authorize” button.
4)Page redirected to customer account page.
Why I am not getting the product list array ? Any help appreciated.
Thanks,
Iqbal.

Try changing the callback URL to the same as the page running the script.

Related

How to reference a user's login in Oracle Apex

I'm trying to automatically display my user's login information on a merchant request page in a text field named P_Username. UI and the code behind merchant request shown below
Merchant Request UI
Merchant Request Code
I assumed I would just set the source of P_Username to the text field that I entered my username into upon login (P9999_USERNAME). UI and the code behind login page shown below
Login UI
Login Code
The login page was automatically created in my apex application so I did not create the table in which that login information was saved under. I'm fairly new to stack overflow, so feel free to give me any tips on how to better ask/portray my questions.
Username you're looking for (e.g. "collin", as displayed on the 1st screenshot) is - in Apex - :APP_USER. Literally like that; a colon : followed by APP_USER.

web application cart implementation for non-logged users

I am working for implementing a spring-boot based shopping application, where a feature exist called ‘add to cart’ for product which works when users is only logged in. Meaning spring-boot back-end creates session when user logged in to make mapping to cart object.
I am trying to implementing a features like real world shopping application like amazon, where product can be added into ‘cart’ even user is not logged in. Then after user log-in user session can be managed / merged with previous non-logged user.
Can some please give me any typical design pattern idea in details or book reference or tutorial link where I can get details idea about such kind of implementation.
If user is anonymous, I would save cart on server and save cart ID in browser using a persistent cookie. When user logs in, server can retrieve the anonymous cart from its ID. Alternatively, you could store full cart in cookie.

Magento Paypal redirect to Cart Page

I have two questions
I have a website in magento. I am using paypal for payment gateway. In checkout page paypal redirect to cart page. I just googled and found some solutions but none worked. Here I am using Mexico paypal extension also.
In admin while entering the sandbox box details to paypal like API username and password and etc, finally clicks on save config values are not updating. showing default values like some *********
Please any one help me?

How to redirect page on payment gateway to submit payment when admin place an order from back end

When customer create an order on site then page will redirect to selected payment gateway page (world pay payment) to submit payment but i want to same thing in back end when admin create an order then page should redirect to selected payment gateway to submit payment.
How it will be possible.
Please Suggest
Thanks
You need to go to the quote.xml or sales.xml or custom.xml, (It depends on which plugin you are using)
In, you need to change the path to the url (path) you want to display

Forms authentication - keeping user logged in after redirect to Paypal

I have a shopping cart in my Umbraco site - when the user clicks pay they are redirected to Paypal to pay for the contents of the cart. Once complete, Paypal redirects back to my site courtesy of a return url I specify in m post data.
The return url is a page that contains a list of purchased subscriptions for that user and they need to be logged in to view it. Since they have to be logged in to click the button that takes them to Paypal I would have expected them to be still logged in when Paypal redirects back to my site but they never are.
I've tried increasing the timeout in the web.config forms element but this has no effect. It's weird, I can shut the browser down & reaccess my site and still be logged in - it's just this post back from Paypal that seems to screw it up. Anyone have any ideas?
After a little more digging as suggested by pc-pdx the problem was that my auth cookie was getting generated for www.mydomain.org.uk but the Paypaf return url was specified as http://mydomain.org.uk.
I changed the return url to http://www.mydomain.org.uk & it fixed it.

Resources