Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

PaymentActivity.EXTRA_DEFAULT_USER_EMAIL not used in login window #47

Closed
ghost opened this issue Feb 5, 2014 · 14 comments
Closed

PaymentActivity.EXTRA_DEFAULT_USER_EMAIL not used in login window #47

ghost opened this issue Feb 5, 2014 · 14 comments

Comments

@ghost
Copy link

ghost commented Feb 5, 2014

Hi, I'm attempting to provide a default user email to be used when paypal displays the login view. However, I can't seem to get the email address to display.

My code to invoke the PaymentActivity is this:

UserModel user = UserModel.loadSavedModel();
quote = (QuoteResponseModel)resultData.getSerializable(SaveQuoteService.QUOTE_RESPONSE);

PayPalPayment payment = new PayPalPayment(quote.getTotalPrice(), quote.getIsoCurrencySymbol(), quote.getQuoteDescription());

Intent intent = new Intent(this, PaymentActivity.class);

// comment this line out for live or set to PaymentActivity.ENVIRONMENT_SANDBOX for sandbox
intent.putExtra(PaymentActivity.EXTRA_PAYPAL_ENVIRONMENT, Config.getString(Config.PayPalEnvironment_Key));

intent.putExtra(PaymentActivity.EXTRA_CLIENT_ID, "<my-client-id>");
intent.putExtra(PaymentActivity.EXTRA_RECEIVER_EMAIL, "<receiver-email>");
intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);
intent.putExtra(PaymentActivity.EXTRA_PAYER_ID, user.getUserId());
intent.putExtra(PaymentActivity.EXTRA_DEFAULT_USER_EMAIL, user.getPayPalEmail());
intent.putExtra(PaymentActivity.EXTRA_SKIP_CREDIT_CARD, true);

startActivityForResult(intent, PAYPAL_PAYMENT_REQUEST_CODE);

It loads the order screen and when I select the Pay with PayPal button the login window opens up without the email address filled in.

Any suggestions on how I may be able to resolve this?

@mattjacunski
Copy link
Contributor

@keannan5390 - Sorry you have encountered this issue. This has just been resolved and we will release a version including this fix in the next several days.

@ghost
Copy link
Author

ghost commented Feb 7, 2014

@mattjacunski Thank you! I look forward to getting the update.

@mattjacunski
Copy link
Contributor

Fixed in release 1.2.6

@nirmalrevar
Copy link

can you privide source code?

@mattjacunski
Copy link
Contributor

@nirmalrevar - Can who provide source code for what?

@nirmalrevar
Copy link

i am trying to integrate pay pal api in to my phone ..
so my app is working fine with sendbox
but when i go to live that time it is not accepting credit card ..i tried
with many different cards .but same error

i don't know what should i put for
intent.putExtra(PaymentActivity.EXTRA_PAYER_ID,
" what should i put here");

and is ceadit card is accept in India from pay pal?

On Tue, Feb 11, 2014 at 8:07 PM, Matt Jacunski notifications@github.comwrote:

@nirmalrevar https://github.com/nirmalrevar - Can who provide source
code for what?

Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-34837057
.

@mattjacunski
Copy link
Contributor

@nirmalrevar - With the 2.0.0 release of this SDK, the EXTRA_PAYER_ID no longer exists. Direct credit card payments are not yet available in India. See here for details.

@nirmalrevar
Copy link

oh thank you so much ....i was don't know about this.

On Fri, Feb 28, 2014 at 12:56 PM, Matt Jacunski notifications@github.comwrote:

@nirmalrevar https://github.com/nirmalrevar - With the 2.0.0 release of
this SDK, the EXTRA_PAYER_ID no longer exists. Direct credit card payments
are not yet available in India. See herehttps://developer.paypal.com/webapps/developer/docs/integration/direct/rest_api_payment_country_currency_support/for details.

Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-36393555
.

@ManojBehera
Copy link

Hey Credit card payment is available ..you can integrate new Paypal SDK.

@nirmalrevar
Copy link

Thank-you so much for this information.. Because I was using some other
techniques to pay with credit card... But now I will use PayPal only...
Thank you again

@ManojBehera
Copy link

You can use Stripe payment gateway for Credit card payment also ....or if you want to use Paypal SDK then use latest SDK to integrate Credit Card and debit card payment....

download latest SDK with one sample app inside it ..

https://github.com/paypal/PayPal-Android-SDK

@braebot
Copy link
Contributor

braebot commented Oct 7, 2014

As mentioned in a previous comment, only the countries/currencies listed here are supported. @ManojBehera, the previous question addresses payments within India, which are still not supported.

Feel free to open a new issue to continue the conversation, if required.

@ManojBehera
Copy link

Yes I agree..The merchant account holder should be from these listed country..It is supporting some listed currencies ...

But We can integrate Paypal in our application by which people from any country can make payment by their Credit card / Debit card and Paypal account. I have integrated with couple of my applications and my clients are from USA, so they have merchant accounts from USA.

Please correct me if i am getting wrong...and please forgive me for my bad English.

@nirmalrevar
Copy link

No friend your English is very good compare to others... And i don't have
more info about PayPal. But you have more information about PayPal then
me.. So you are right friend

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants