[Solved] Paypal Sample Error

Hi there,

I could not run the plugin sample . The popup error stated not supported due to only on iOS and Android devices. But as seen in the attachment, i’m using an iphone device. It doesnt work for all other devices i switch to so i suspect it might be a config problem. Any advice on this? Thanks!

Regards,

Vincent

Hello there.

This means that you must build your corona project for your physical device (ex IPhone 5, nexus 4 etc) in order to test and use the plugin.

You can also build for the Xcode simulator. Basically it runs on practically anything but the Corona simulator. The Corona simulator skin selected does not make a difference.

Hope this helps.

Thanks so much gremlin! It worked after I launch it on my iphone4 test device . Now I had a error pop up that stating “you did not provide a valid license key to paypal.init…etcetc” when I press the pay button at home page. But from the other posts and d official web, the license is only needed for “production mode”. The sample was in “sandbox” mode, any advise on this?

Hey Vincent.

Yeah, we posted in the forums announcing this change over a week ago, along with updating our documentation to reflect this also.

So basically you must purchase a license in order to use it within your project, regardless of the environment (i.e. sandbox mode/production mode).

PS: If you are seeing conflicting information regarding the licensing situation, would you please point us to the misleading urls?

Thanks :slight_smile:

Thanks again gremlin! I’ve made the purchase and the plugin is integrated nicely. I would like to inquire about two new questions that surfaced while using the sandbox. One is when i pay using SGD(sender) but my sandbox merchant(receiver) account is in USD, the sandbox website merchant’s money is not updated, deduction still happens at the user account. This problem does not surface when both are in USD. Is this more of a paypal side issue?

Secondly is more of a question, when i pay through credit card, the credit card is it processed via paypal as well?  Thanks for the above prompt replies again.

Thanks for your support, appreciate it!

Question 1) when i pay using SGD(sender) but my sandbox merchant(receiver) account is in USD, the sandbox website merchant’s money is not updated, deduction still happens at the user account.

Answer) I’m not sure I fully understand the question. If I understand it correctly, the guide at the bottom of the following link should answer your question: http://gremlininteractive.com/paypal_developer_credentials/

Question 2) when i pay through credit card, the credit card is it processed via paypal as well?

Answer) When you pay via a credit card that is processed via PayPal.


Let me know if you have any further questions.

Thanks

Thanks ! What i meant is in a sand box setting, when i made a payment in SGD to a USD account. The merchant account’s fund is not updated but the sender’s account is deducted. 

(i.e. Sender’s sandbox account have SGD 500 and Merchant account have 1000 USD. After making a purchase of SGD 100. Sender’s account is deducted SGD100 to SGD 400 but the merchant account did not reflect the SGD 100 increase, it still remains as 1000 USD.

This error does not exist if the payment in made via USD(the merchant’s account currency). 

[sharedmedia=core:attachments:2289]

[sharedmedia=core:attachments:2290]

Interesting. I understand what you mean now. I assume this is either a potential propagation issue with PayPal’s sandbox, or an issue with their SDK.

However don’t take this as gospel. I will do some research on this to ensure it is not something wrong on our end. I will also update the plugin to the latest PayPal SDK (they seem to have a new version out every week or so) and scan through their release notes to see if they fixed anything related to what you are seeing.

Thanks for bringing this up!

I will keep you posted.

I did some investigation and this does indeed seem to be a PayPal setup issue. Please read through the following stackoverflow thread, it contains various options to resolve this issue: http://stackoverflow.com/questions/4298117/paypal-ipn-always-return-payment-status-pending-on-sandbox

How this helps!

Hi Gremlin!

Thanks for the help in looking into this and the investigation. The answer is exactly what i’m looking for! It’s working now. Thanks.

Hello there.

This means that you must build your corona project for your physical device (ex IPhone 5, nexus 4 etc) in order to test and use the plugin.

You can also build for the Xcode simulator. Basically it runs on practically anything but the Corona simulator. The Corona simulator skin selected does not make a difference.

Hope this helps.

Thanks so much gremlin! It worked after I launch it on my iphone4 test device . Now I had a error pop up that stating “you did not provide a valid license key to paypal.init…etcetc” when I press the pay button at home page. But from the other posts and d official web, the license is only needed for “production mode”. The sample was in “sandbox” mode, any advise on this?

Hey Vincent.

Yeah, we posted in the forums announcing this change over a week ago, along with updating our documentation to reflect this also.

So basically you must purchase a license in order to use it within your project, regardless of the environment (i.e. sandbox mode/production mode).

PS: If you are seeing conflicting information regarding the licensing situation, would you please point us to the misleading urls?

Thanks :slight_smile:

Thanks again gremlin! I’ve made the purchase and the plugin is integrated nicely. I would like to inquire about two new questions that surfaced while using the sandbox. One is when i pay using SGD(sender) but my sandbox merchant(receiver) account is in USD, the sandbox website merchant’s money is not updated, deduction still happens at the user account. This problem does not surface when both are in USD. Is this more of a paypal side issue?

Secondly is more of a question, when i pay through credit card, the credit card is it processed via paypal as well?  Thanks for the above prompt replies again.

Thanks for your support, appreciate it!

Question 1) when i pay using SGD(sender) but my sandbox merchant(receiver) account is in USD, the sandbox website merchant’s money is not updated, deduction still happens at the user account.

Answer) I’m not sure I fully understand the question. If I understand it correctly, the guide at the bottom of the following link should answer your question: http://gremlininteractive.com/paypal_developer_credentials/

Question 2) when i pay through credit card, the credit card is it processed via paypal as well?

Answer) When you pay via a credit card that is processed via PayPal.


Let me know if you have any further questions.

Thanks

Thanks ! What i meant is in a sand box setting, when i made a payment in SGD to a USD account. The merchant account’s fund is not updated but the sender’s account is deducted. 

(i.e. Sender’s sandbox account have SGD 500 and Merchant account have 1000 USD. After making a purchase of SGD 100. Sender’s account is deducted SGD100 to SGD 400 but the merchant account did not reflect the SGD 100 increase, it still remains as 1000 USD.

This error does not exist if the payment in made via USD(the merchant’s account currency). 

[sharedmedia=core:attachments:2289]

[sharedmedia=core:attachments:2290]

Interesting. I understand what you mean now. I assume this is either a potential propagation issue with PayPal’s sandbox, or an issue with their SDK.

However don’t take this as gospel. I will do some research on this to ensure it is not something wrong on our end. I will also update the plugin to the latest PayPal SDK (they seem to have a new version out every week or so) and scan through their release notes to see if they fixed anything related to what you are seeing.

Thanks for bringing this up!

I will keep you posted.

I did some investigation and this does indeed seem to be a PayPal setup issue. Please read through the following stackoverflow thread, it contains various options to resolve this issue: http://stackoverflow.com/questions/4298117/paypal-ipn-always-return-payment-status-pending-on-sandbox

How this helps!

Hi Gremlin!

Thanks for the help in looking into this and the investigation. The answer is exactly what i’m looking for! It’s working now. Thanks.