【发布时间】:2022-08-23 19:25:11
【问题描述】:
对于我的应用程序中的 Google 支付付款,我在 Angular 中使用了 @google-pay/button-angular
HTML 代码是: <google-pay - button[environment]=\"current_env\"[buttonColor] = \"buttonColor\"[buttonType] = \"buttonType\"
[buttonSizeMode] = \"isCustomSize ? \'fill\' : \'static\'\"[paymentRequest] = \"paymentRequest\"
(loadpaymentdata) = \"onLoadPaymentData($event)\" >
在 TS 文件中,代码是,
current_env: String = environment.production != true ? \"测试\" : \"生产\";
按钮颜色:字符串=“黑色”;
buttonType: String = \"支付\";
isCustomSize = false;
早些时候它工作正常。
标签: angular angular6 integration element google-pay