I have implemented Braintree SDK which supports pay using Paypal, Credit or Debit Card and Google Pay.
All are working except Google Pay. I am getting following error while selecting payment method as GooglePay.
This merchant is not enabled for Google Pay Even I have enabled Google Pay option on Braintree console.
following is the code for implementation:
Code on Pay button click:
DropInRequest dropInRequest = new DropInRequest()
.amount(strAmount)
.googlePaymentRequest(getGooglePaymentRequest())
.tokenizationKey("production_key_xxxxxxxxx");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
startActivityForResult(dropInRequest.getIntent(getActivity()), 399);
}
private GooglePaymentRequest getGooglePaymentRequest() {
return new GooglePaymentRequest()
.transactionInfo(TransactionInfo.newBuilder()
.setTotalPrice(strAmount)
.setCurrencyCode("USD")
.setTotalPriceStatus(WalletConstants.TOTAL_PRICE_STATUS_FINAL)
.build())
.emailRequired(true);
}
Help would be appreciated.