OR_CCREU_03 in Gpay | OR_CCREU_03 | How to resolve the OR_CCREU_03 issue

OR_CCREU_03 error occurs when a string is used for the amount. Google Pay requires the amount to be in a double format, so you need to convert it accordingly.

GooglePayButton(
paymentConfigurationAsset: 'gpay.json', // Path to your payment configuration JSON file
paymentItems: _paymentItems,
style: GooglePayButtonStyle.black,
type: GooglePayButtonType.pay,
margin: const EdgeInsets.only(top: 15.0),
onPaymentResult: onGooglePayResult,
loadingIndicator: const Center(
child: CircularProgressIndicator(),
   ),
),

{
  "provider": "stripe",
  "apiVersion": 2,
  "apiVersionMinor": 0,
  "allowedPaymentMethods": [
    {
      "type": "CARD",
      "parameters": {
        "allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
        "allowedCardNetworks": ["AMEX", "DISCOVER", "JCB", "MASTERCARD", "VISA"]
      },
      "tokenizationSpecification": {
        "type": "PAYMENT_GATEWAY",
        "parameters": {
          "gateway": "stripe",
          "stripe:version": "2020-08-27",
          "stripe:publishableKey": "YOUR_PUBLISHABLE_KEY"
        }
      }
    }
  ],
  "merchantInfo": {
    "merchantId": "BCR2DN6TZLJ2JN4",  // Replace with your actual Merchant ID
    "merchantName": "Example Merchant"
  },
  "transactionInfo": {
    "totalPriceStatus": "FINAL",
    "totalPriceLabel": "Total",
    // "totalPrice": "10", // replace with double 
     "totalPrice":double.parse(amount.toString()),
     
    "currencyCode": "USD",
    "countryCode": "US"
  }
}

Conclusion: This is how you can resolve the OR_CCREU_03 problem in your code.

If you need consultancy for this service, our expert team is ready to guide you and resolve the issue promptly. Thank you on behalf of ResearchThinker contact@researchthinker.com.

Leave a Reply

Your email address will not be published. Required fields are marked *

web_horizontal
About Us ♢ Disclaimer ♢ Privacy Policy ♢ Terms & Conditions ♢ Contact Us

Copyright © 2023 ResearchThinker.com. All rights reserved.