【发布时间】:2020-02-05 21:06:57
【问题描述】:
我正在胶囊中实施支付系统。但是在端点的 SPS 支付方式中使用货币时出错。
payment {
amount (50)
currency (payInfo.currency)
item {
name ("abcd")
amount (50)
count (1)
}
tax {
amount (0)
}
}
目前我们使用的是静态金额、物品详情等
货币结构:
enum (Currency) {
symbol (USD)
symbol (EUR)
symbol (VUV)
}
PayInfo 结构:
structure (payInfo) {
property (currency) {
type (Currency)
min (Optional)
max (One)
}
}
我使用的 Bixby 参考:
https://bixbydevelopers.com/dev/docs/dev-guide/developers/actions.payments
----------------------------问题2----------------- ----------------------
我们做了一个结构信息为
structure (Information){
property (amount) {
type (Amount)
min (Optional)
max (Many)
}
property (currency) {
type (Currency)
min (Optional)
max (Many)
}
}
将货币结构为
enum (Currency) {
symbol (USD)
symbol (EUR)
symbol (VUV)
}
在 Action PaymentAction 之后,我们将结构信息定义为输入支付的类型。
action (PaymentAction) {
type(Commit)
collect {
input (payInfo) {
type (Information)
min (Optional)
}
}
output (makepayment)
}
并在训练中添加了一个话语:
[g:PaymentAction] 付款
通过这个我们的错误得到解决,但是当我们在模拟器中运行代码时,得到 Capsule Execution Error as Com.google.common.base.VerifyException: '' is not a valid ISO 4217 currency code。
【问题讨论】:
标签: bixby bixbystudio