Sajib saha
Sajib saha

Reputation: 371

tap to pay stripe terminal not working after published in google play store

Error creating payment intent: live TerminalException: declinedByStripeApi I/flutter (19401): You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/. I/flutter (19401): ApiError(error=InnerError(charge=null, code=null, declineCode=null, docUrl=null, message=You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/., param=null, paymentIntent=null, setupIntent=null, type=INVALID_REQUEST_ERROR)) I/flutter (19401): com.stripe.stripeterminal.external.models.TerminalException: You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). S E/flutter (19401): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Null check operator used on a null value E/flutter (19401): #0 PosMenuController.proceedTapToPay. (package:reatiler_pos/app/modules/pos_menu/controllers/pos_menu_controller.dart:4821)

 final paymentIntent =
          await terminal.createPaymentIntent(PaymentIntentParameters(
        amount: (double.parse(double.parse(amount).toStringAsFixed(2)) * 100)
            .ceil(),
        currency: "USD", // your currency
        customerId: _customer?.id,
        captureMethod: CaptureMethod.automatic,
        paymentMethodTypes: [PaymentMethodType.cardPresent],
      ));

tap to pay stripe terminal not working after published in google play store . but when i have tried in release apk its working fine. i have tested in many devices . all permission is taken. but when i download from google playstore then payment screen not showing .

Upvotes: 0

Views: 35

Answers (0)

Related Questions