INSendPaymentIntentResponse

INSendPaymentIntentResponse

我构建了Intents Extension,并且正在处理INSendMoneyIntent,我说的是:



应用确认后的响应



意图包含正确的货币iso 3代码-EUR,那么siri为什么在付款确认中显示错误的货币?

返回意图

INSendPaymentIntentResponse *reponse = [[INSendPaymentIntentResponse alloc] initWithCode:INSendPaymentIntentResponseCodeReady userActivity:userActivity];
completion(reponse);

最佳答案

您需要在其中添加付款记录到您的回复中

(void)确认SendPayment:(INSendPaymentIntent *)意图

像这样:

INSendPaymentIntentResponse *response = [[INSendPaymentIntentResponse alloc] initWithCode:INSendPaymentIntentResponseCodeReady userActivity:userActivity];
response.paymentRecord = [[INPaymentRecord alloc] initWithPayee:intent.payee payer:nil currencyAmount:intent.currencyAmount paymentMethod:nil note:intent.note status:INPaymentStatusPending];
completion(response);

关于ios - SiriKit付款确认货币始终为美元,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39122198/

10-12 15:46