Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Getting error making in app payment

$
0
0

I am trying to do an in app purchase using StoreKit. I can successfully get the SKProduct in stance, but when I pass it into this method to actually make the paytment:

private void MakePayment (SKProduct product)
{
   SKPayment payment = SKPayment.PaymentWithProduct (product);
   SKPaymentQueue.DefaultQueue.AddPayment (payment);
}

I get an exception in the AddPayment method that says this:

Failed to marshal the Objective-C object 0x14607110 (type: SKPaymentTransaction). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type 'MonoTouch.StoreKit.SKPaymentTransaction[]' does not have a constructor that takes one IntPtr argument).

Any ideas what I am doing wrong?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>