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

InlinePaymentPanel 组件无法传入extInfos #15646

Closed
hanwensheng666 opened this issue May 6, 2024 · 1 comment
Closed

InlinePaymentPanel 组件无法传入extInfos #15646

hanwensheng666 opened this issue May 6, 2024 · 1 comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x

Comments

@hanwensheng666
Copy link

相关平台

百度小程序

小程序基础库: 3.780.2
使用框架: React

复现步骤

使用InlinePaymentPanel组件,传入extInfos参数,未正常将参数透传给百度小程序原生支付面板组件inline-payment-panel

期望结果

可正常传extInfos

实际结果

未透传extInfos给原生组件

环境信息

 Taro CLI 3.6.15 environment info:
    System:
      OS: macOS 14.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.15 => 3.6.15 
      @tarojs/components: 3.6.15 => 3.6.15 
      @tarojs/components-react: 3.6.15 => 3.6.15 
      @tarojs/helper: 3.6.15 => 3.6.15 
      @tarojs/plugin-framework-react: 3.6.15 => 3.6.15 
      @tarojs/plugin-mini-ci: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-h5: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-swan: 3.6.15 => 3.6.15 
      @tarojs/plugin-platform-weapp: 3.6.15 => 3.6.15 
      @tarojs/react: 3.6.15 => 3.6.15 
      @tarojs/router: 3.6.15 => 3.6.15 
      @tarojs/runtime: 3.6.15 => 3.6.15 
      @tarojs/shared: 3.6.15 => 3.6.15 
      @tarojs/taro: 3.6.15 => 3.6.15 
      @tarojs/webpack5-runner: 3.6.15 => 3.6.15 
      babel-preset-taro: 3.6.15 => 3.6.15 
      eslint-config-taro: 3.6.15 => 3.6.15 
      react: ^18.0.0 => 18.2.0 

补充信息

ext-infos是百度小程序内嵌支付组件用来传递一些特殊参数用的,例如实验号、签名、补充字段等,ext-infos为一个字符串

@taro-bot2 taro-bot2 bot added F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x labels May 6, 2024
@hanwensheng666
Copy link
Author

import {InlinePaymentPanel} from '@tarojs/components';
<InlinePaymentPanel
totalAmount={totalAmount}
dealId={orderPay.dealId}
appKey={orderPay.appKey}
extInfos={this.state.payExtInfos}
customStyle={{
panel: {
background: '#fff'
},
channel: {
fontSize: pxTransform(48),
color: '#1f1f1f'
},
market: {
fontSize: pxTransform(48),
color: '#1f1f1f',
fontWeight: '600'
},
checkedBase: {
background: '#fd503e'
}
}}
onGetPaymentInfo={data => this.getPaymentInfo(data)}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant