PayPayiOSTest.PayPalManager.PayPalFuturePaymentViewController C# (CSharp) Method

PayPalFuturePaymentViewController() public method

public PayPalFuturePaymentViewController ( PayPalFuturePaymentViewController futurePaymentViewController, NSDictionary futurePaymentAuthorization ) : void
futurePaymentViewController PayPalFuturePaymentViewController
futurePaymentAuthorization NSDictionary
return void
		void PayPalFuturePaymentViewController(PayPalFuturePaymentViewController futurePaymentViewController, NSDictionary futurePaymentAuthorization)
		{
			Debug.WriteLine("PayPal Future Payment Authorization Success!");
			// send authorization to your server to get refresh token.
			futurePaymentViewController?.DismissViewController(true, () =>
			{
				ResultText = futurePaymentAuthorization.Description;
			});
		}

Usage Example

 public override void PayPalFuturePaymentViewController(Xamarin.PayPal.iOS.PayPalFuturePaymentViewController futurePaymentViewController, NSDictionary futurePaymentAuthorization)
 {
     PayPalManager.PayPalFuturePaymentViewController(futurePaymentViewController, futurePaymentAuthorization);
 }