Paypal redirect issue in iPad - ruby

I have an issue on iPad, I am using Paypal sandbox with my Ruby code. Which is a SOAP call to https://api-3t.sandbox.paypal.com/2.0/. When I pay from my iPad, it redirects to my return url but as a Get request. But when I pay from my laptop/window/ubantu machine, it redirects as a POST request. I am unable to understand why is it happening.
Please help me in this.

Related

Redirect URL not getting called when authenticating using Xamarin.Auth

I am starting to build an app that authenticates to a third party web service, and I'm having problems getting the authentication working. The login page is displayed correctly, but once the user logs in an error message is displayed: "The URL can't be shown".
I'm working on the iOS version of my app first, so I've only tested this on iOS so far using the Simulator. I initially thought that I wasn't registering the URL scheme for the redirect URL correctly, but if I put a breakpoint in AppDelegate.OpenURL(), and enter a URL with my URL scheme in Safari my app is launched.
Handling the OAuth2Authenticator.Error event didn't give any more information beyond the same error message.
This is my first time working with Xamarin Forms and Xamarin Auth, so I'm not sure what else to do in order to debug the problem. What else can I do in order to figure out the root cause of this error?
Turns out this was due to user error.
The redirect URL I was using didn't match the redirect URL I registered with the web service. Once I made them the same, the redirect URL worked as expected.

Magento 1.9 REST API failing with nonce_used error

I have a Magento 1.9 CE install which I am trying to access via the REST API.
I keep getting the 'oauth_problem=nonce_used' error when I start the process by calling the oauth/initiate URL.
I have added some logging into the /Mage/Oauth/Model/Server.php _validateNonce method and despite what nonce I supply in the Postman request, the same nonce gets logged out. In other words, the nonce in the request disappears somehow and a previous nonce is retrieved from somewhere.
And it isn't just the nonce from the previous request. I called the oauth/initiate URL several times and the logged nonce was the same for all of them (and never the nonce passed in the request).
I'm not sure if this is a Magento thing or Apache/mod_rewrite is doing something as well.
Any thoughts much appreciated.
It was an issue with Postman rather than Magento. It wasn't updating the post data correctly.

PayPal integration - issue in redirecting

I am trying to integrate PayPal in my application (MVC4 C#)
Any link/ guidance in integrating it (step by step explanation) will be really helpful.
Issue is
Even though my action link is "https://www.sandbox.paypal.com/cgi-bin/webscr"
it redirects to
"www.sandbox.paypal/home"
If you don't append this ?cmd=_express-checkout&token= with the token then you will be redirected to the home page and not the PayPal Checkout page. The token is gotten from a successful setExpressCheckout request.
The payflow for ExpressCheckout is:
SetExpressCheckout request
Redirect to PayPal for user authorisation
Return to your site
GetExpressCheckoutDetails request
doExpressCheckoutPayment request
Here's a little diagram of the payflow for it:

Paypal redirect logging me out of my site?

I have no idea if anyone experience this, i have a slight problem when redirecting from paypal to my site back....
I have a site built with angularjs + php in the backend of it, i log in to my site and everything is fine, When i try to do a recurring payments, it redirects to paypal, i accept the payments and such, when i come back to my site (review payment) i have in the url the payer id and token, which is exactly what i need.. but im not logged in anymore to my site.
The problem with this is, if i do reconnect to my site again, and do the same procedure, now it's all good...
What can be the cause of my site to log out the user when it redirect's back from somewhere, in this case, from paypal?
Take a close look at two requests from the browser to your website:
- the last one before redirection to PayPal
- the redirection from PayPal
Open the Network tab in FireBug or Developer Tools, depending on your browser, and examine the values sent in cookies.
Check if your browser accepts cookies (assuming it's cookie-based sessions you are using)
Make sure there is a cookie created by your PHP when you make the first one
Make sure it is still there, sent from the browser when you come back from PayPal
Make sure the values in the cookies (session ids) match
Also, that the server does not send a "set-cookie" header in the response to the second request
A "no" to any of the above opens a few more options to investigate, so start with these.

HTTPS to HTTPS redirect session issue

I have a site (built on LAMP (cakephp) and has ssl certificate installed) which has a secure payment page. After filling up necessary information user proceeds to a payment gateway page. After all the process at the gateway end, gateway redirects to one of my URL, which I have to mention with a payment request.
Now when I keep this url as http redirect happens properly and all the sessions are maintained. But I want to make this page as https, and when the payment gateway redirects to the https version of the URL, my session information dies and I get redirected to my home page.
eg: my payment page
https://www.mysite.com/payment
from here user goes to the payment gateway site, does necessary things and payment gateway redirects it to
http://www.mysite.com/paymentResponse (this url i have to mention in the request)
now i have to make this as HTTPS, but when I do that my session info dies
Plz help me
Thanks,
Dinesh
I don't know why it supposedly works for plain HTTP requests, but the problem may be related to Configure::write('Security.level') being set to medium or high, which activates PHP's session.referer_check, which may be the reason sessions are dying for you when being redirected from external sites.

Resources