Ios 无法获取INSendPaymentIntent在watchOS上使用SiriKit(3.2和4)

Ios 无法获取INSendPaymentIntent在watchOS上使用SiriKit(3.2和4),ios,swift,xcode,watchos-3,watchos-4,Ios,Swift,Xcode,Watchos 3,Watchos 4,我需要完成watchOS sirikit支付应用程序(作为iPhone应用程序的配套应用程序)。 相同的框架、意图逻辑和处理程序正在iOS上运行。 我开发了意图和处理程序。当我问Siri下面的句子 using MyApp send Albert $40 Siri回答 Sorry I can't do that. and give a button Open MyApp 我看到一些帖子说,watchOS上没有Siri的支付意图。但我在SDK中看到了这一点。 请给我指点 @available

我需要完成watchOS sirikit支付应用程序(作为iPhone应用程序的配套应用程序)。 相同的框架、意图逻辑和处理程序正在iOS上运行。

我开发了意图和处理程序。当我问Siri下面的句子

using MyApp send Albert $40  
Siri回答

Sorry I can't do that. and give a button Open MyApp
我看到一些帖子说,watchOS上没有Siri的支付意图。但我在SDK中看到了这一点。 请给我指点

@available(watchOS 3.2, *)  
open class INSendPaymentIntent : INIntent {  
    public init(payee: INPerson?, currencyAmount: INCurrencyAmount?, note: String?)  
    @NSCopying open var payee: INPerson? { get }  
    @NSCopying open var currencyAmount: INCurrencyAmount? { get }  
    open var note: String? { get }  
}  
Plists和项目具有正确的权限和功能。 支付意图Plist具有以下键。

我无法发布
处理程序的代码,因为我有法规遵从性问题。而且。。。我在那里做的不多。
同样的代码也适用于iPhone Siri

// WatchIntentsExtension.swift
import Intents
import PaymentsFrameworkWatchOS

class WatchIntentsExtension: INExtension {
    let paymentProvider = PaymentProvider()
    let contactLookup = ContactLookup()

    override func handler(for intent: INIntent) -> Any? {
        print("Watch Overriding")
        guard intent is INSendPaymentIntent else { fatalError("Unhandled intent type \(intent)") }

        return WatchSendPaymentIntentHandler(paymentProvider: paymentProvider, contactLookup: contactLookup)
    }
}