1 | import { ComponentType } from 'react'
|
2 | import { StandardProps } from './common'
|
3 | interface InlinePaymentPanelProps extends StandardProps {
|
4 | /** 总金额,金额单位分,tip:仅支持整数型字符串
|
5 | * @supported swan
|
6 | */
|
7 | totalAmount?: string
|
8 |
|
9 | /** 百度收银台的财务结算凭证,详见平台术语
|
10 | * @supported swan
|
11 | */
|
12 | dealId?: string
|
13 |
|
14 | /** 支付能力开通后分配的支付 appKey,详见平台术语
|
15 | * @supported swan
|
16 | */
|
17 | appKey?: string
|
18 |
|
19 | /** 平台营销信息,此处传当前订单中可使用平台券的 spuid,同时需在 支付能力中搭配使用传入该参数;注:仅与百度合作平台类目券的开发者需要填写该参数
|
20 | * @supported swan
|
21 | */
|
22 | promotionTag?: string | Array<string>
|
23 |
|
24 | /** 是否设置挽留弹窗
|
25 | * @supported swan
|
26 | * @default false
|
27 | */
|
28 | enablePageBackModal?: boolean
|
29 |
|
30 | /** 自定义样式设置
|
31 | * @supported swan
|
32 | */
|
33 | customStyle?: string
|
34 |
|
35 | /** 自定义样式档位配置,各档位配置项包括支付渠道/优惠券条高度、渠道图标大小、支付渠道文案字体大小、营销文案字体大小、选择器图标大小
|
36 | * @supported swan
|
37 | * @default "default"
|
38 | */
|
39 | styleType?: 'tiny' | 'small' | 'default' | 'medium' | 'large'
|
40 |
|
41 | /** 获取支付相关信息,具体信息在返回值的 detail 字段中
|
42 | * @supported swan
|
43 | */
|
44 | onGetPaymentInfo?: CommonEventFunction
|
45 |
|
46 | /** 当发生错误时触发 error 事件,具体信息在返回值的 detail 字段中,例如 {detail: {errMsg: "something is wrong"}}
|
47 | * @supported swan
|
48 | */
|
49 | onError?: CommonEventFunction
|
50 | }
|
51 |
|
52 | /** 内嵌支付组件
|
53 | * @classification open
|
54 | * @supported swan
|
55 | * @see https://smartprogram.baidu.com/docs/develop/component/inline_payment_panel/
|
56 | */
|
57 | declare const InlinePaymentPanel: ComponentType<InlinePaymentPanelProps>
|
58 | export { InlinePaymentPanel, InlinePaymentPanelProps }
|