1

我想使用条带支付将支付宝集成到我的颤振应用程序中。我可以添加卡片并且它们工作正常。但是对于支付宝,我找不到任何合适的解决方案。谁能帮帮我吗。

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));

我试过这段代码来创建一个源,但它给了我错误

[错误:flutter/lib/ui/ui_dart_state.cc(157)] 未处理的异常:PlatformException(invalidRequest, null, null) E/flutter (17877): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.飞镖:569:7)

4

0 回答 0