google-pay / google-pay-button

Google Pay button - React, Angular, and custom element
Apache License 2.0
250 stars 60 forks source link

OR-CCSEH-21 Error - React #216

Closed 1337-ishaan closed 1 year ago

1337-ishaan commented 1 year ago

When integrated with React and continued the payment CODE:

import React from "react";
import GooglePayButton from "@google-pay/button-react";
const Gpay = () => {
  console.log("here");
  return (
    <GooglePayButton
      environment="TEST"
      paymentRequest={{
        apiVersion: 2,
        apiVersionMinor: 0,
        allowedPaymentMethods: [
          {
            type: "CARD",
            parameters: {
              allowedAuthMethods: ["PAN_ONLY", "CRYPTOGRAM_3DS"],
              allowedCardNetworks: ["MASTERCARD", "VISA"],
            },
            tokenizationSpecification: {
              type: "PAYMENT_GATEWAY",
              parameters: {
                gateway: "stripe",
                "stripe:version": "v3",
                "stripe:publishableKey":
               "<pub_key_added>",
              },
            },
          },
        ],
        merchantInfo: {
          merchantId: "12345678901234567890",
          merchantName: "Demo Merchant",
        },
        transactionInfo: {
          totalPriceStatus: "FINAL",
          totalPriceLabel: "Total",
          totalPrice: "100.00",
          currencyCode: "USD",
          countryCode: "US",
        },
      }}
      onLoadPaymentData={(paymentRequest) => {
        console.log("load payment data", paymentRequest);
      }}
    />
  );
};

export default Gpay;

ERROR:

Screenshot 2023-04-02 at 1 14 08 PM
dmengelt commented 1 year ago

Hi @1337-ishaan Could you join the testing group with your Google Account and try again with a test card?

dmengelt commented 1 year ago

@1337-ishaan any updates? Are you still facing this issue?

dmengelt commented 1 year ago

closing due to inactivity