SkinnablePopUpContainer in mobile.

2016-04-01 Thread leokan23
I have several popups in one of my apps, and i am trying to figure out how to make a grey transparent behind the popup when it is open. I am looking for a similar look to the native android when any modal is open. Any ideas? thanks -- View this message in context: http://apache-flex-users.23

Re: PayPal integration - Error #2096

2016-04-01 Thread jude
I ran into something like this before a few times. I don't remember the exact issue but you might want to use url variables instead of object for params. You also may need to set the content type. I'll try and look it up when I'm not on mobile. Post this on stack overflow and I'll help over there.

Re: PayPal integration - Error #2096

2016-04-01 Thread leokan23
Thanks Jude, i have added the question to stackoverflow too paypal-integration-error-2096-in-flex-mobile -- View this message in context: http://apache-flex-users.246.n4.nabble.com/PayPal-integra

Re: PayPal integration - Error #2096

2016-04-01 Thread Clint M
Maybe this: http://stackoverflow.com/a/539173/3384609 Gist: You can fix this by setting (in the above example) encoder.insertNewLines = false; The default setting is true. On Fri, Apr 1, 2016 at 10:28 AM, leokan23 wrote: > Thanks Jude, > > i have added the question to stackoverflow too > > payp

Re: PayPal integration - Error #2096

2016-04-01 Thread leokan23
i have already tried this, but when i use it, the PayPal service doesn't go through. It just fails. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/PayPal-integration-Error-2096-tp12359p12388.html Sent from the Apache Flex Users mailing list archive at Nabble.com

Re: PayPal integration - Error #2096

2016-04-01 Thread Matthew Weir
You mentioned it was mobile.  If you're using android you may want to consider the following before pursuing this error too much further - Developers offering products within another category of app downloaded on Google Play must use Google Play In-app Billing as the method of payment, ex

Re: PayPal integration - Error #2096

2016-04-01 Thread leokan23
Hi Matthew, thanks for the notice :) i have been looking at this for a while. The app will be used to buy physical goods which will be shipped to the users address and this is why i am looking at PayPal. Thanks for the info though. -- View this message in context: http://apache-flex-users.233

Re: PayPal integration - Error #2096

2016-04-01 Thread OmPrakash Muppirala
Looks like it is a well documented issue: http://blogs.adobe.com/koestler/2010/12/dealing-with-argumenterrors-while-pushing-urlrequestheaders.html Have you tried to do a search and replace for new line on the encoder string? Thanks, Om On Fri, Apr 1, 2016 at 11:41 AM, leokan23 wrote: > Hi Matt

Re: PayPal integration - Error #2096

2016-04-01 Thread Matthew Weir
That was a fun one :) This should work for you. var encoder:Base64Encoder = new Base64Encoder(); encoder.insertNewLines = false; encoder.encode(client_id + ":" + secret); var s:String = encoder.toString(); var paramss:URLVariables = new URLVariables(); paramss.grant_type='client_credentials' var

Re: PayPal integration - Error #2096

2016-04-01 Thread psychobob
Trying to format better var encoder:Base64Encoder = new Base64Encoder(); encoder.insertNewLines = false; encoder.encode(client_id + ":" + secret); var s:String = encoder.toString(); var paramss:URLVariables = new URLVariables(); paramss.grant_type='client_credentials' va

Re: PayPal integration - Error #2096

2016-04-01 Thread leokan23
I tried it and this works perfectly. I have no idea why using httpservice instead didn't work. Thanks for all the help :) -- View this message in context: http://apache-flex-users.246.n4.nabble.com/PayPal-integration-Error-2096-tp12359p12394.html Sent from the Apache Flex Users mailing

Re: PayPal integration - Error #2096

2016-04-01 Thread Matthew Weir
Well If you want the easy answer, which I found about two minutes ago //paypal.contentType = "application/x-www-form-urlencoded";   <-- this is the problem paypal.headers["contentType"] = "application/x-www-form-urlencoded"; paypal.headers["Authorization"] = "Basic " + s; On Friday, Ap

Re: PayPal integration - Error #2096

2016-04-01 Thread leokan23
Oh..OK, I thought that contentType should work as i have used it before (Implement a onesignal server). Again thanks for all the help :) -- View this message in context: http://apache-flex-users.246.n4.nabble.com/PayPal-integration-Error-2096-tp12359p12396.html Sent from the Apache Flex

Re: PayPal integration - Error #2096

2016-04-01 Thread OmPrakash Muppirala
Next time, you might want to remove the client_id and secret strings when posting on a public forum :-) Thanks, Om On Fri, Apr 1, 2016 at 2:45 PM, leokan23 wrote: > Oh..OK, > > I thought that contentType should work as i have used it before (Implement > a > onesignal server). > > Again thanks f

Re: PayPal integration - Error #2096

2016-04-01 Thread leokan23
Hi om, they are just the paypals sandbox default (the ones provided in the API Reference for the first call). They aren't the actually client_id and secret i use. Thanks though :) -- View this message in context: http://apache-flex-users.246.n4.nabble.com/PayPal-integration-Error-2096-tp