Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid argument(s): 'Unknown' is not one of the supported values: Manual, Automatic #1390

Closed
sirawatGG opened this issue Aug 31, 2023 · 1 comment · Fixed by #1412
Closed
Labels
bug Something isn't working

Comments

@sirawatGG
Copy link

sirawatGG commented Aug 31, 2023

Describe the bug
First of all I am still in test mode. after I call confirmPayment, it throw me an error. However in Stripe dashboard, it shows that the payment success

Screenshot 2023-08-31 at 12 13 36 PM

To Reproduce
Steps to reproduce the behavior:

  1. after I receive clientSecret from backend
  2. I call dangerouslyUpdateCardDetails as below
await Stripe.instance.dangerouslyUpdateCardDetails(CardDetails(
        expirationMonth: 12,
        expirationYear: 34,
        number: '4242424242424242',
        cvc: '567',
      ));
  1. I create billingDetails as below
    final billingDetails = BillingDetails(
      email: _email,
      phone: '+48888000888',
      address: Address(
        city: 'Houston',
        country: 'US',
        line1: '1459  Circle Drive',
        line2: '',
        state: 'Texas',
        postalCode: '77063',
      ),
    ); 
  1. now I call confirmPayment as below
      await Stripe.instance.confirmPayment(
        paymentIntentClientSecret: clientSecret,
        data: PaymentMethodParams.card(
          paymentMethodData: PaymentMethodData(
            billingDetails: billingDetails,
          ),
        ),
      );
  1. I get error Unknown is not one of the supported values: Manual, Automatic, but in the stripe dashboard the payment is success

Smartphone / tablet

  • ios simulator
@sirawatGG sirawatGG added the needs triage Needs triage label Aug 31, 2023
remonh87 pushed a commit that referenced this issue Sep 12, 2023
Stripe added this recently to their mappers
remonh87 pushed a commit that referenced this issue Sep 12, 2023
Stripe added this recently to their mappers
@remonh87
Copy link
Member

Thanks for reporting created an PR that contains a fix.

@remonh87 remonh87 added bug Something isn't working and removed needs triage Needs triage labels Sep 12, 2023
remonh87 added a commit that referenced this issue Sep 25, 2023
Stripe added this recently to their mappers

Co-authored-by: Remon <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants