Integrate AliPay with Stripe in Flutter

391 views Asked by At

I want to integrate Alipay in my flutter application using stripe payments. I am able to add cards and they are working fine. But for Alipay, I can't find any proper solution. Can anyone please help me.

var source = await StripePayment.createSourceWithParams(SourceParams(
        returnURL: 'https://shop.example.com/crtA6B28E1',
        type: 'alipay',
        amount: int.parse(amount),
        currency: currency))
    .then((value) => print(value.sourceId));

I tried this code to create a source but it is giving me error

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(invalidRequest, null, null) E/flutter (17877): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)

0

There are 0 answers