what is the alternative solution for paymentWithProductIdentifier?

前端 未结 4 1195
醉酒成梦
醉酒成梦 2020-12-15 18:34

Hi i am using in APP purchase in my project . When i run this project everything works fine, except i am getting a warning message saying that \"paymentWithProductIdentifier

4条回答
  •  心在旅途
    2020-12-15 18:54

    Try using this:

    SKProduct *selectedProduct = <#from the products response list#>;
    SKPayment *payment = [SKPayment paymentWithProduct:selectedProduct];
    [[SKPaymentQueue defaultQueue] addPayment:payment];
    

提交回复
热议问题