PayPal for Android won't switch to Production environment -
so i'have integrated paypal-android-sdk:2.15.3 in app , works expected in sandbox. want move production.
i switched environment paypalconfiguration.environment_production , client id production client id. happens first can't login using real paypal account, second see blue sandbox button below screenshot:
my code:
paypalconfiguration config = new paypalconfiguration() .environment(custombuildconfig.pay_pal_config_environment) .clientid(custombuildconfig.pay_pal_config_client_id); paypalpayment thingtobuy = new paypalpayment(new bigdecimal(value), currency, item, paypalpayment.payment_intent_sale); intent intent = new intent(getcontext(), paymentactivity.class); intent.putextra(paypalservice.extra_paypal_configuration, config); intent.putextra(paymentactivity.extra_payment, thingtobuy); startactivityforresult(intent, request_code_paypal_payment); where:
pay_pal_config_environment = paypalconfiguration.environment_production; pay_pal_config_client_id = "production client id";
edit: same production client id in use , working ios client.
sandbox mode testing mode works actual process without touching live paypal account. causing issue can't log in actual credentials because sandbox enables logging in test credentials.
credentials work, have disable sandbox mode.
see here :- disabling sandbox mode
also, read sandbox in detail :- here , here

Comments
Post a Comment