pay in app

Rob, I came across this sample code on this link https://github.com/GremlinInteractive/plugins_sample_paypal/commits/master.

However, Paypal only gives you an App ID and a secret. Would you know where to get the configuration parameters under the sandbox and user at the end of this code below. Not sure if this app is written for Rest API or Classic API?

paypal.config { productionClientID = "Paypal Client ID", sandboxClientID = "same as above I assume", acceptCreditCards = true, --true/false (optional) -- default false language = "en", --The users language/locale -- If omitted paypal will show it's views in accordance with the device's current language setting. merchant = { name = "Golf", -- (required) -- The name of the merchant/company privacyPolicyURL = "http://www.gremlininteractive.com", -- (optional) -- The merchants privacy policy url -- default is paypals privacy policy url userAgreementURL = "http://www.gremlininteractive.com", -- (optional) -- The user agreement URL -- default is paypals user agreement url }, rememberUser = false, environment = "sandbox", -- Valid values: "sandbox", "noNetwork", "production" -- Uncomment the below lines and fill in with your details, if required. sandbox =  { useDefaults = true, password = "12345678", pin = "Your\_Sandbox\_Pin", }, user =  { email = "?", phoneNumber = "?", phoneCountryCode = "?", }, }

Hi amirfarazmand, where you able to make the PayPal plugin work?

I need a payment system for “real world goods” in my new app and I’m interested in knowing how did it go.

I don’t know anything about that plugin.  Though some people were saying that after it was released, PayPal changed the requirements (maybe for iOS only) and they needed a new plugin built with the new SDK.  But since you’re using the source, you’re probably using the newer SDK.  Hopefully a community member might have gotten further than you have with it, but I suspect you’re trailblazing new ground.

Rob

I actually could make a sandbox call by only entering client ID and changing the sandbox table values to profile password and pin="". It is surprising that the secret code provided by paypal wasnt used. When I make a real credit card payment I will add the code for others to use.

Hi amirfarazmand, where you able to make the PayPal plugin work?

I need a payment system for “real world goods” in my new app and I’m interested in knowing how did it go.