79483186

Date: 2025-03-04 09:19:19
Score: 1
Natty:
Report link

Use assets/applepay.json as your paymentConfigurationAsset for Apple Pay. You can save the file path to a variable the reference it in the paymentConfigurationAsset field. Do the same for google pay . Here is is referenced in the docs you linked https://github.com/google-pay/flutter-plugin/blob/main/pay/example/lib/payment_configurations.dart

ApplePayButton(
              paymentConfigurationAsset:PaymentConfiguration.fromJsonString(
 applepayJsonReferenceToAssets)
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yonko Kilasi