Hi.. This is my code of MainActivity.cs File in Xamarin Forms protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); var config = new PayPalConfiguration(PayPalEnvironment.Sandbox, "Here is my Sendbox ID") { //If you want to accept credit cards AcceptCreditCards = true, //Your business name MerchantName = "Test Store", //Your privacy policy Url MerchantPrivacyPolicyUri = "https://www.example.com/privacy", //Your user agreement Url MerchantUserAgreementUri = "https://www.example.com/legal", // OPTIONAL - ShippingAddressOption (Both, None, PayPal, Provided) ShippingAddressOption = ShippingAddressOption.Both, // OPTIONAL - Language: Default languege for PayPal Plug-In Language = "en", // OPTIONAL - PhoneCountryCode: Default phone country code for PayPal Plug-In PhoneCountryCode = "91", }; //iOS //CrossPayPalManager.Init(config); //Android CrossPayPalManager.Init(config, this); LoadApplication(new App()); } protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { base.OnActivityResult(requestCode, resultCode, data); PayPalManagerImplementation.Manager.OnActivityResult(requestCode, resultCode, data); } protected override void OnDestroy() { base.OnDestroy(); PayPalManagerImplementation.Manager.Destroy(); } ----------------------------------------------- This is the code of my button click event private async void Button_Clicked(object sender, EventArgs e) { var result = await CrossPayPalManager.Current.Buy(new PayPalItem("Test Product", new Decimal(10.00), "USD"), new Decimal(0)); if (result.Status == PayPalStatus.Cancelled) { Debug.WriteLine("Cancelled"); } else if (result.Status == PayPalStatus.Error) { Debug.WriteLine(result.ErrorMessage); } else if (result.Status == PayPalStatus.Successful) { Debug.WriteLine(result.ServerResponse.Response.Id); } } ------------------------------------------------ Issue 01: This code is work accurately with USD Currency. When i have change USD to INR then this code is not working. Issue 02: after putting credit card details the sendbox button is not enabled.
... View more