in flutter language implementing "pay: ^1.0.10" for google pay using UPI without using any payment getway

Viewed 21

can any one help me out for UPI payment using google pay in flutter language. i have created google pay merchan ID but i'm not able to get that where i have to add merchantID and is it posible, insted of allowedPaymentMethods:"type":"card" how i can use UPI for payment.and what i have to add merchantInfo for this. and one more that is where to change test mode to live mode. but i don't have to add any payment getway for this integration. so is it posible...?

{
  "apiVersion": 2,
  "apiVersionMinor": 0,
  "merchantInfo": {
    "merchantName": "Example Merchant"
  },
  "allowedPaymentMethods": [
    {
      "type": "CARD",
      "parameters": {
        "allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
        "allowedCardNetworks": ["AMEX", "DISCOVER", "INTERAC", "JCB", "MASTERCARD", "MIR", "VISA"]
      },
      "tokenizationSpecification": {
        "type": "PAYMENT_GATEWAY",
        "parameters": {
          "gateway": "example",
          "gatewayMerchantId": "exampleGatewayMerchantId"
        }
      }
    }
  ],
  "transactionInfo": {
    "totalPriceStatus": "FINAL",
    "totalPrice": "12.34",
    "currencyCode": "USD"
  }
}

Thank you.

0 Answers
Related