Page 1 of 3

Paypal recurring payments and CORS

Posted: Sat Jul 12, 2014 11:32 am
by Bad Addy

I have created two ways for my users to pay, one is a one off payment, and now i would like to create a recurring payment.

Using this guide, it looks pretty simple, compared to my last ordeal :

https://devtools-paypal.com/guide/rec...

When I test the service it comes back with a urlencoded response, which is fine:

Image

I can slice that, but when i test it in the app, it gives me this error:

Image

So using this guide and that it works in test, any reason it would not work in practice via the app ?


Paypal recurring payments and CORS

Posted: Sat Jul 12, 2014 11:37 am
by Bad Addy

I have tried to add the header, but still same issue:

Image

This is the full console response:

Image


Paypal recurring payments and CORS

Posted: Sat Jul 12, 2014 8:54 pm
by Alena Prykhodko

We'll look into this, but it will take some time.


Paypal recurring payments and CORS

Posted: Sun Jul 13, 2014 9:20 pm
by Yurii Orishchuk

Hi Addy,

Please specify where did you test it(in device or in browser)?

If you test it in browser you need to set Appery.io proxy.

See more about it: http://devcenter.appery.io/documentat...

Regards.


Paypal recurring payments and CORS

Posted: Mon Jul 14, 2014 7:19 am
by Bad Addy

Hi Yurli, I did test it in the browser, and i will try it with the proxy. Will get back to you, thanks :)


Paypal recurring payments and CORS

Posted: Mon Jul 14, 2014 1:07 pm
by Bad Addy

Thats, that worked great. Can I just check, trying to use server code to allow IPN from paypal is giving me an error from the Paypal IPN simulator. Would I be right in thinking I cannot use Server code for IPNs ?


Paypal recurring payments and CORS

Posted: Tue Jul 15, 2014 2:40 am
by Yurii Orishchuk

Hi Addy,

Please give us information about error which you recieved in your server code.

Regards.


Paypal recurring payments and CORS

Posted: Tue Jul 15, 2014 7:12 am
by Bad Addy

I do not get the error in server code, but when I use the Paypal IPN simulator it gives me a HTTP 400 error if I put the server code exec url


Paypal recurring payments and CORS

Posted: Tue Jul 15, 2014 7:36 am
by Bad Addy

Image

I did say in my message 18 hours ago the error was in Paypal IPN Simulator! Here is the message screen shot. Think it has something to do with the protocol being HTTP 1.0 and it should be HTTP 1.1. But thats based on a google search.


Paypal recurring payments and CORS

Posted: Wed Jul 16, 2014 12:02 am
by Yurii Orishchuk

Hi Addy,

Please share your app and server code with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and describe steps how we can reproduce it.

Also tell us app name and server code name.

Thanks & regards.