Open rohitgarg29 opened 1 year ago
Hi @rohitgarg29 thanks for using the Braintree SDK for Android. We do have a constructor for BraintreeClient that allows you to specify a custom return url. In the AndroidManifest.xml
for your standalone integration, you can then specify a custom url scheme instead of using the applicationId
manifest placeholder.
Hi @sshropshire Thanks for replying. I tried your way but getting the error message "Paypal is not enabled" in onPayPalFailure method and it does not even launch the paypal payment UI.
braintreeClient = new BraintreeClient(requireContext(), clientTokenResponse.getClientTokenData().getClientToken(), "myapp");
payPalClient = new PayPalClient(this, braintreeClient);
payPalClient.setListener(this);
PayPalCheckoutRequest request = new PayPalCheckoutRequest(getAmount());
request.setCurrencyCode(PAYPAL_CURRENCY_CODE);
paypalContainer.setVisibility(GONE);
payPalClient.tokenizePayPalAccount(requireActivity(), request);
@rohitgarg29 have you followed this guide to enable PayPal as a payment source?
@sshropshire yes it is enabled. Without drop-in it was working fine.
@rohitgarg29 does your manifest for for the ReviewAndPayActivity
now contain:
<data android:scheme="myapp" />
?
@sshropshire it has this value as well. Can you please test it at your end with drop and standlone both options?
Hi Team,
I want to add paypal option in both DropIn client and Paypal as standlone integration.
For Paypal Standlone, I have to add the following to my activity:
For DropIn, I will have to add the following:
Because of this, when I am coming back from paypal, i have to choose from the picker, Is there a work around or way to resolve it?