google-pay / google-pay/flutter-plugin

Add More Params to Configuration String

Open
#297 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Dart
Stars
176
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
I'm trying to use the package to create a deferred payment but it seems impossible. (or someone please show me how to achieve this)

Describe the solution you'd like
At first it confused me that the sample configuration lack a lot of params and I wonder how should I add deferredPaymentRequest to the configuration string. I looked into PaymentHandler.swift and found that not all the parameters available in the documentation for Apple Pay is considered in PaymentHandler.createPaymentRequest.

Image

Describe alternatives you've considered
Maybe I would have to create my own platform code for that.

Additional context
Sorry for my bad English. It would be very helpful if we'll be able to add all the params just like native documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in PaymentHandler.swift at createPaymentRequest and compare its supported configuration parameters with Apple’s PKPaymentRequest documentation, especially deferredPaymentRequest. Trace how the Flutter configuration reaches the native request and identify the relevant tests or examples. Done means the requested parameters can be supplied through the plugin without custom platform code.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, swift
Domain
mobile, payments
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.