2

I want to integrate Google Pay in my android application. I have tried this repo. getting the following error.

This merchant is not enabled for google pay

Here is some of my code which is causing the error.

public static final HashMap<String, String> PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS = new HashMap<String, String>() {

   put("gateway", "example"); // WHAT SHOULD I WIRTE INSTED OF EXAMPLE?
          put("gatewayMerchantId", "MerchantIdexample"); //found from https://merchants.google.com 
          // Your processor may require additional parameters.
        }
};
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

3 Answers3

1

You need to add this to your manifest (inside application)::

<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/>
n_r
  • 589
  • 7
  • 17
-2
out_marginLeft="50dp"
            android:layout_marginTop="50dp"
            android:layout_marginRight="50dp"
            android:gravity="center"
            android:orientation="vertical">

            <ProgressBar
                android:id="@+id/progressBar"
                style="?android:attr/progressBarStyleHorizontal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_above="@+id/txtProgress"
                android:layout_centerHorizontal="true"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:progress="50"
                android:progressTint="@android:color/black" />

            <TextView
                android:id="@+id/txtProgress"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="8dp"
                android:text="Progress"
                android:textColor="@android:color/black" />
        </LinearLayout>  

Java
-3

the transaction may be risky. For your safety, it cant be completed at this time I am also getting this error while using this code

      </a>
  • 1
    This doesn't seem to be an answer. Please check on how to write awesome answers here : https://stackoverflow.com/help/how-to-answer – Rishabh Kumar Feb 21 '21 at 06:29